Class InterPartitionCommandReceiverActor
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.transport.partitionapi.InterPartitionCommandReceiverActor
- All Implemented Interfaces:
CheckpointListener,DiskSpaceUsageListener,AsyncClosable,ConcurrencyControl,AutoCloseable
public final class InterPartitionCommandReceiverActor
extends Actor
implements DiskSpaceUsageListener, CheckpointListener
Receives messages send by @
InterPartitionCommandSenderImpl and tries to write them as
commands to the partition's log stream. Failure to write to the log stream, for example because
no disk space is available, the logstream rejected the write operation or message decoding
failure, are ignored. The sender is responsible for recognizing failures and retrying.-
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
ConstructorsConstructorDescriptionInterPartitionCommandReceiverActor(int partitionId, ClusterCommunicationService communicationService, LogStreamWriter logStreamWriter) -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected voidprotected voidvoidWill be called when disk space usage goes below the threshold after it was above it.voidWill be called when disk space usage grows above the thresholdvoidonNewCheckpointCreated(long checkpointId) Methods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, call, close, closeAsync, getContext, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorFailed, onActorStarted, run, 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.ConcurrencyControl
createCompletedFuture, createFuture
-
Constructor Details
-
InterPartitionCommandReceiverActor
public InterPartitionCommandReceiverActor(int partitionId, ClusterCommunicationService communicationService, LogStreamWriter logStreamWriter)
-
-
Method Details
-
createContext
- Overrides:
createContextin classActor
-
getName
-
onActorStarting
protected void onActorStarting()- Overrides:
onActorStartingin classActor
-
onActorClosing
protected void onActorClosing()- Overrides:
onActorClosingin classActor
-
onDiskSpaceNotAvailable
public void onDiskSpaceNotAvailable()Description copied from interface:DiskSpaceUsageListenerWill be called when disk space usage grows above the threshold- Specified by:
onDiskSpaceNotAvailablein interfaceDiskSpaceUsageListener
-
onDiskSpaceAvailable
public void onDiskSpaceAvailable()Description copied from interface:DiskSpaceUsageListenerWill be called when disk space usage goes below the threshold after it was above it.- Specified by:
onDiskSpaceAvailablein interfaceDiskSpaceUsageListener
-
onNewCheckpointCreated
public void onNewCheckpointCreated(long checkpointId) - Specified by:
onNewCheckpointCreatedin interfaceCheckpointListener
-