public class TimelineObject<T> extends Object
Constructor and Description |
---|
TimelineObject(SnapshotRegistry snapshotRegistry,
T initialValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
executeRevert(long targetEpoch,
org.apache.kafka.timeline.Delta delta)
Revert to the target epoch.
|
T |
get() |
T |
get(long epoch) |
int |
hashCode() |
void |
reset()
Reverts to the initial value.
|
void |
set(T newValue) |
String |
toString() |
public TimelineObject(SnapshotRegistry snapshotRegistry, T initialValue)
public T get()
public T get(long epoch)
public void set(T newValue)
public void executeRevert(long targetEpoch, org.apache.kafka.timeline.Delta delta)
targetEpoch
- The epoch to revert to.delta
- The delta associated with this epoch for this object.public void reset()