org.apache.commons.id.uuid.state
Class ReadWriteFileStateImpl
java.lang.Object
org.apache.commons.id.uuid.state.ReadOnlyResourceStateImpl
org.apache.commons.id.uuid.state.ReadWriteFileStateImpl
- All Implemented Interfaces:
- Serializable, State
public class ReadWriteFileStateImpl
- extends ReadOnlyResourceStateImpl
- implements State
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.
- Version:
- $Id: ReadWriteFileStateImpl.java 480488 2006-11-29 08:57:26Z bayard $
- Author:
- Commons-Id team
- See Also:
- Serialized Form
|
Method Summary |
void |
store(Set nodes)
Persists the UUID generator state to file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadWriteFileStateImpl
public ReadWriteFileStateImpl()
store
public void store(Set nodes)
throws IOException
- Persists the UUID generator state to file.
- Specified by:
store in interface State- Overrides:
store in class ReadOnlyResourceStateImpl
- Parameters:
nodes - a Collection of Nodes to store.
- Throws:
IOException - - an input/output Exception perhaps due to StringBuffer#append- See Also:
State.store(java.util.Set)
Copyright © 2013 LittleShoot. All Rights Reserved.