|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.utilities.tstamp.TstampSet
public class TstampSet
Provides a way to guarantee unique timestamps by keeping track of the old ones and incrementing the millisecond field as needed to create a unique one. The behavior of this class is to return the passed tstamp if it is not already in the set, or else return an incremented version of the tstamp which is incremented enough times to be unique.
Constructor Summary | |
---|---|
TstampSet()
Create a new TstampSet, which is initialized with no knowledge of prior timestamps. |
Method Summary | |
---|---|
long |
getUniqueTstamp(long tstamp)
Return a new unique timestamp based upon the passed timestamp. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TstampSet()
Method Detail |
---|
public long getUniqueTstamp(long tstamp)
tstamp
- The tstamp to be used as a basis for finding a unique timestamp.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |