|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.id.uuid.state.ReadOnlyResourceStateImpl org.apache.commons.id.uuid.state.ReadWriteFileStateImpl
public class ReadWriteFileStateImpl
The ReadWriteFileStateImpl
is an implementation of the
State
interface. This implementation provides better guarantees
that no duplicate UUID's will be generated since the last time stamp, and
last clock sequence are stored to a persistent file.
Field Summary |
---|
Fields inherited from class org.apache.commons.id.uuid.state.ReadOnlyResourceStateImpl |
---|
CONFIG_FILENAME_KEY |
Fields inherited from interface org.apache.commons.id.uuid.state.State |
---|
DEFAULT_STATE_IMPL |
Constructor Summary | |
---|---|
ReadWriteFileStateImpl()
|
Method Summary | |
---|---|
void |
store(java.util.Set nodes)
Persists the UUID generator state to file. |
Methods inherited from class org.apache.commons.id.uuid.state.ReadOnlyResourceStateImpl |
---|
getNodes, getSynchInterval, load, parse, store |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.id.uuid.state.State |
---|
getNodes, getSynchInterval, load, store |
Constructor Detail |
---|
public ReadWriteFileStateImpl()
Method Detail |
---|
public void store(java.util.Set nodes) throws java.io.IOException
store
in interface State
store
in class ReadOnlyResourceStateImpl
nodes
- a Collection of Node
s to store.
java.io.IOException
- - an input/output Exception perhaps due to StringBuffer#appendState.store(java.util.Set)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |