public final class ObjectIdDispenser extends Object
SequentialIdGenerator for further details.| Modifier and Type | Method and Description |
|---|---|
static ObjectIdDispenser |
getInstance()
Simply returns the one and only dispenser object.
|
long |
getNextObjectID()
Retrieves the next unique object identifier.
|
static void |
main(String[] args)
Gets and prints the next object ID.
|
public static ObjectIdDispenser getInstance()
public long getNextObjectID()
throws SequentialIdGeneratorException
SequentialIdGeneratorException - When the next object ID could not be obtained.
public static void main(String[] args) throws SequentialIdGeneratorException
args - Not used.SequentialIdGeneratorException - When the next object id could not be fetched.Copyright © 2008–2017. All rights reserved.