|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.id.uuid.NodeManagerImpl
public final class NodeManagerImpl
Class is responsible for managing the Nodes identified for
this system (JVM instance), as well as the state management for the
Nodes.
| Constructor Summary | |
|---|---|
NodeManagerImpl()
Constructor for class. |
|
| Method Summary | |
|---|---|
Node |
currentNode()
Returns the current node in use for uuid generation. |
protected void |
finalize()
Asks the State implementation to store. |
void |
init()
Initialization |
void |
lockNode(Node node)
Locks a node for use by a generator. |
Node |
nextAvailableNode()
Returns the next available Node for uuid generation. |
void |
releaseNode(Node node)
Releases a node locked by a generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeManagerImpl()
| Method Detail |
|---|
public void init()
public Node currentNode()
Returns the current node in use for uuid generation. Calls to this method also signal the NodeManagerImpl when to store uuid state information.
currentNode in interface NodeManagerpublic Node nextAvailableNode()
Returns the next available Node for uuid generation.
nextAvailableNode in interface NodeManagerNode for uuid generation.public void lockNode(Node node)
Locks a node for use by a generator.
lockNode in interface NodeManagernode - the Node to lock.public void releaseNode(Node node)
Releases a node locked by a generator.
releaseNode in interface NodeManagernode - the Node to release.
protected void finalize()
throws java.lang.Throwable
Asks the State implementation to store.
finalize in class java.lang.Objectjava.lang.ThrowableObject.finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||