Class RemoteJobStreamErrorHandlerService
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.broker.jobstream.RemoteJobStreamErrorHandlerService
- All Implemented Interfaces:
PartitionListener,AsyncClosable,ConcurrencyControl,RemoteStreamErrorHandler<ActivatedJob>,AutoCloseable
public final class RemoteJobStreamErrorHandlerService
extends Actor
implements PartitionListener, RemoteStreamErrorHandler<ActivatedJob>
An empty actor which is used as the execution context for the
RemoteJobStreamErrorHandler. We split this off from the handler itself to simplify testing and
not rely on a complete actor scheduler.-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidhandleError(Throwable error, ActivatedJob job) onBecomingFollower(int partitionId, long term) Is called by theZeebePartitionon becoming partition follower after all partition installation/clean up related things are done.onBecomingInactive(int partitionId, long term) Is called by theZeebePartitionon becoming inactive after a Raft role change or a failed transition.onBecomingLeader(int partitionId, long term, LogStream logStream, QueryService queryService) Is called by theZeebePartitionon becoming partition leader after all partition installation/clean up related things are done.Methods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, call, close, closeAsync, createContext, getContext, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorClosing, onActorFailed, onActorStarted, onActorStarting, 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
-
RemoteJobStreamErrorHandlerService
-
-
Method Details
-
getName
-
onBecomingFollower
Description copied from interface:PartitionListenerIs called by theZeebePartitionon becoming partition follower after all partition installation/clean up related things are done.- Specified by:
onBecomingFollowerin interfacePartitionListener- Parameters:
partitionId- the corresponding partition idterm- the current term- Returns:
- future that should be completed by the listener
-
onBecomingLeader
public ActorFuture<Void> onBecomingLeader(int partitionId, long term, LogStream logStream, QueryService queryService) Description copied from interface:PartitionListenerIs called by theZeebePartitionon becoming partition leader after all partition installation/clean up related things are done.- Specified by:
onBecomingLeaderin interfacePartitionListener- Parameters:
partitionId- the corresponding partition idterm- the current termlogStream- the corresponding log streamqueryService- the corresponding query service- Returns:
- future that should be completed by the listener
-
onBecomingInactive
Description copied from interface:PartitionListenerIs called by theZeebePartitionon becoming inactive after a Raft role change or a failed transition.- Specified by:
onBecomingInactivein interfacePartitionListener- Parameters:
partitionId- the corresponding partition idterm- the current term- Returns:
- future that should be completed by the listener
-
handleError
- Specified by:
handleErrorin interfaceRemoteStreamErrorHandler<ActivatedJob>
-