public final class LogicalClock
extends java.lang.Object
| Constructor and Description |
|---|
LogicalClock() |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.store.LogicalTimestamp |
getTimestamp()
Increments and returns the current timestamp.
|
void |
tick(org.onosproject.store.LogicalTimestamp timestamp)
Records an event.
|
<T> Timestamped<T> |
timestamp(T value)
Returns a timestamped value.
|
public void tick(org.onosproject.store.LogicalTimestamp timestamp)
timestamp - the event timestamppublic <T> Timestamped<T> timestamp(T value)
T - the value typevalue - the value to timestamppublic org.onosproject.store.LogicalTimestamp getTimestamp()