public class StateSnapshotMetadata extends Object implements Comparable<StateSnapshotMetadata>
| Modifier and Type | Field and Description |
|---|---|
static long |
INITIAL_LAST_PROCESSED_EVENT_POSITION |
static long |
INITIAL_LAST_WRITTEN_EVENT_POSITION |
| Constructor and Description |
|---|
StateSnapshotMetadata(long lastSuccessfulProcessedEventPosition,
long lastWrittenEventPosition,
int lastWrittenEventTerm,
boolean exists) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StateSnapshotMetadata o) |
static StateSnapshotMetadata |
createInitial(int term) |
boolean |
equals(Object obj) |
boolean |
exists() |
long |
getLastSuccessfulProcessedEventPosition()
Returns the last successful processed event position when the state was last updated.
|
long |
getLastWrittenEventPosition()
Returns the last written event position when the state was last updated.
|
int |
getLastWrittenEventTerm()
Returns the term of the last written event
|
int |
hashCode() |
boolean |
isInitial() |
String |
toString() |
public static final long INITIAL_LAST_PROCESSED_EVENT_POSITION
public static final long INITIAL_LAST_WRITTEN_EVENT_POSITION
public StateSnapshotMetadata(long lastSuccessfulProcessedEventPosition,
long lastWrittenEventPosition,
int lastWrittenEventTerm,
boolean exists)
public static StateSnapshotMetadata createInitial(int term)
term - the current termpublic long getLastSuccessfulProcessedEventPosition()
public long getLastWrittenEventPosition()
public int getLastWrittenEventTerm()
public boolean exists()
public boolean isInitial()
public int compareTo(StateSnapshotMetadata o)
compareTo in interface Comparable<StateSnapshotMetadata>Copyright © 2017–2018 camunda services GmbH. All rights reserved.