|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.norm.UIDGenerator
class UIDGenerator
Utility class for generating locally unique IDs.
Field Summary | |
---|---|
private long |
nextID
Value of the next ID |
Constructor Summary | |
---|---|
UIDGenerator()
|
Method Summary | |
---|---|
(package private) void |
inUse(long ID)
Used during log recovery to update the generator that a given ID is in use. |
(package private) long |
newID()
Generate ID, this method performs appropriate locking to ensure the returned ID is unique. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long nextID
Constructor Detail |
---|
UIDGenerator()
Method Detail |
---|
long newID()
void inUse(long ID)
ID
- ID that is in use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |