|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sasl.common.clock.SimpleLogicalClock
public class SimpleLogicalClock
Representation of a one dimensional Lamport logical clock.
Constructor Summary | |
---|---|
SimpleLogicalClock()
Default constructor. |
|
SimpleLogicalClock(long initialClockValue)
Initializes the initial clock value with the given clock value. |
Method Summary | |
---|---|
long |
getCurrentClockValue()
Returns the current clock value. |
static SimpleLogicalClock |
getSharedClockInstance()
Returns a shared logical clock instance. |
long |
nextClockValue()
Increments the current clock value by one and returns the increment clock value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLogicalClock()
public SimpleLogicalClock(long initialClockValue)
initialClockValue
- any long valueMethod Detail |
---|
public static SimpleLogicalClock getSharedClockInstance()
public long getCurrentClockValue()
public long nextClockValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |