org.jivesoftware.xiff.data.id
class SharedObjectGenerator
Object
|
+--org.jivesoftware.xiff.data.id.SharedObjectGenerator
Implemented Interfaces: IIDGeneratorclass SharedObjectGenerator extends Object
Generates an incrementing ID and saves the last value in a local shared object. Guaranteed to generate unique IDs for a single machine.
- Author:Sean Treadway
- Since:2.0.0
Constructor Documentation
Method Documentation
getID
function getID (
prefix: String): String
Gets the unique ID.
- Specified by:getID in interface IIDGenerator
- Parameters:
prefix The ID prefix to use when generating the ID - Returns:The generated ID
- SharedObjectGenerator.as, Last Modified: 3/10/2005 10:10:46 PM