Interface ExecutionContext
public interface ExecutionContext
Temporary interface to be able to test the leader based replication in the simulator, which implements fakes
objects.
It gives access to the changelog and the data state of the replica.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the changelog of the replica.Returns the replica id of the replica.void
updateDataState
(CSN csn) Updates the data state of the replica.
-
Field Details
-
EMPTY_EXECUTION_CONTEXT
An empty execution context.
-
-
Method Details
-
getChangelog
ReplicaChangelog getChangelog()Returns the changelog of the replica.- Returns:
- the changelog of the replica
-
updateDataState
Updates the data state of the replica.- Parameters:
csn
- the CSN to update the data state with
-
replicaId
ReplicaId replicaId()Returns the replica id of the replica.- Returns:
- the replica id of the replica
-