Class SnapshotTransferImpl
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.snapshots.transfer.SnapshotTransferImpl
- All Implemented Interfaces:
AsyncClosable,ConcurrencyControl,SnapshotTransfer,AutoCloseable,Executor
-
Nested Class Summary
Nested classes/interfaces inherited from class io.camunda.zeebe.scheduler.Actor
Actor.ActorBuilder -
Field Summary
Fields inherited from class io.camunda.zeebe.scheduler.Actor
actor, ACTOR_PROP_NAME, ACTOR_PROP_PARTITION_ID -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotTransferImpl(Function<ConcurrencyControl, SnapshotTransferService> service, SnapshotMetrics snapshotMetrics, ReceivableSnapshotStore snapshotStore) -
Method Summary
Methods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, call, close, closeAsync, createContext, getContext, getName, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorClosing, onActorFailed, onActorStarted, onActorStarting, run, runOnCompletion, runOnCompletion, schedule, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.scheduler.AsyncClosable
closeAsyncMethods inherited from interface io.camunda.zeebe.scheduler.ConcurrencyControl
createCompletedFuture, createFuture, execute
-
Constructor Details
-
SnapshotTransferImpl
public SnapshotTransferImpl(Function<ConcurrencyControl, SnapshotTransferService> service, SnapshotMetrics snapshotMetrics, ReceivableSnapshotStore snapshotStore)
-
-
Method Details
-
getLatestSnapshot
- Specified by:
getLatestSnapshotin interfaceSnapshotTransfer- Parameters:
partitionId- the partition to get the snapshot from- Returns:
- a persisted snapshot satisfying the parameters' requirements
-