Class LogStorageAppender
java.lang.Object
io.camunda.zeebe.util.sched.Actor
io.camunda.zeebe.logstreams.impl.log.LogStorageAppender
- All Implemented Interfaces:
CloseableSilently,HealthMonitorable,AsyncClosable,ConcurrencyControl,AutoCloseable
Consume the write buffer and append the blocks to the distributedlog.
-
Field Summary
FieldsFields inherited from class io.camunda.zeebe.util.sched.Actor
actor, ACTOR_PROP_NAME, ACTOR_PROP_PARTITION_ID -
Constructor Summary
ConstructorsConstructorDescriptionLogStorageAppender(String name, int partitionId, LogStorage logStorage, Subscription writeBufferSubscription, int maxBlockSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFailureListener(FailureListener failureListener) getName()protected voidhandleFailure(Exception failure) protected voidvoidprotected voidvoidremoveFailureListener(FailureListener failureListener) Methods inherited from class io.camunda.zeebe.util.sched.Actor
buildActorName, buildActorName, close, getContext, isActorClosed, onActorCloseRequested, onActorClosing, onActorStarted, run, runOnCompletion, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.util.sched.ConcurrencyControl
createCompletedFuture, createFuture
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
LogStorageAppender
public LogStorageAppender(String name, int partitionId, LogStorage logStorage, Subscription writeBufferSubscription, int maxBlockSize)
-
-
Method Details
-
createContext
- Overrides:
createContextin classActor
-
getName
- Specified by:
getNamein interfaceHealthMonitorable- Overrides:
getNamein classActor
-
onActorStarting
protected void onActorStarting()- Overrides:
onActorStartingin classActor
-
onActorClosed
protected void onActorClosed()- Overrides:
onActorClosedin classActor
-
closeAsync
- Specified by:
closeAsyncin interfaceAsyncClosable- Overrides:
closeAsyncin classActor
-
handleFailure
- Overrides:
handleFailurein classActor
-
onActorFailed
public void onActorFailed()- Overrides:
onActorFailedin classActor
-
getHealthReport
- Specified by:
getHealthReportin interfaceHealthMonitorable
-
addFailureListener
- Specified by:
addFailureListenerin interfaceHealthMonitorable
-
removeFailureListener
- Specified by:
removeFailureListenerin interfaceHealthMonitorable
-