|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.id.uuid.NodeManagerImpl
public final class NodeManagerImpl
Class is responsible for managing the Node
s identified for
this system (JVM instance), as well as the state management for the
Node
s.
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 NodeManager
public Node nextAvailableNode()
Returns the next available Node
for uuid generation.
nextAvailableNode
in interface NodeManager
Node
for uuid generation.public void lockNode(Node node)
Locks a node for use by a generator.
lockNode
in interface NodeManager
node
- the Node to lock.public void releaseNode(Node node)
Releases a node locked by a generator.
releaseNode
in interface NodeManager
node
- the Node to release.protected void finalize() throws java.lang.Throwable
Asks the State implementation to store.
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |