Package io.camunda.zeebe.dynamic.config
Class GatewayClusterConfigurationService
java.lang.Object
io.camunda.zeebe.scheduler.Actor
io.camunda.zeebe.dynamic.config.GatewayClusterConfigurationService
- All Implemented Interfaces:
ClusterConfigurationUpdateNotifier,AsyncClosable,ConcurrencyControl,AutoCloseable,Executor
public class GatewayClusterConfigurationService
extends Actor
implements ClusterConfigurationUpdateNotifier
The GatewayClusterConfigurationService contains minimal functionality required for the Gateway.
The Gateway only listens to ClusterConfiguration changes. It cannot make changes to the
configuration. So the service does not run ClusterConfigurationManager, but only contains the
ClusterConfigurationGossiper.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.camunda.zeebe.scheduler.Actor
Actor.ActorBuilderNested classes/interfaces inherited from interface io.camunda.zeebe.dynamic.config.ClusterConfigurationUpdateNotifier
ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener -
Field Summary
Fields inherited from class io.camunda.zeebe.scheduler.Actor
actor, ACTOR_PROP_NAME, ACTOR_PROP_PARTITION_ID -
Constructor Summary
ConstructorsConstructorDescriptionGatewayClusterConfigurationService(ClusterCommunicationService communicationService, ClusterMembershipService memberShipService, ClusterConfigurationGossiperConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister configuration update listener which is notified when cluster configuration is changed.protected voidprotected voidvoidremoveUpdateListener(ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener listener) Removed the registered listenerMethods inherited from class io.camunda.zeebe.scheduler.Actor
buildActorName, call, close, closeAsync, createContext, getContext, getName, handleFailure, isActorClosed, newActor, onActorClosed, onActorCloseRequested, onActorFailed, onActorStarted, 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.ConcurrencyControl
createCompletedFuture, createFuture, execute
-
Constructor Details
-
GatewayClusterConfigurationService
public GatewayClusterConfigurationService(ClusterCommunicationService communicationService, ClusterMembershipService memberShipService, ClusterConfigurationGossiperConfig config)
-
-
Method Details
-
onActorStarting
protected void onActorStarting()- Overrides:
onActorStartingin classActor
-
onActorClosing
protected void onActorClosing()- Overrides:
onActorClosingin classActor
-
addUpdateListener
public void addUpdateListener(ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener listener) Description copied from interface:ClusterConfigurationUpdateNotifierRegister configuration update listener which is notified when cluster configuration is changed. The listener is immediately invoked if the current configuration is not null.- Specified by:
addUpdateListenerin interfaceClusterConfigurationUpdateNotifier- Parameters:
listener- which is notified
-
removeUpdateListener
public void removeUpdateListener(ClusterConfigurationUpdateNotifier.ClusterConfigurationUpdateListener listener) Description copied from interface:ClusterConfigurationUpdateNotifierRemoved the registered listener- Specified by:
removeUpdateListenerin interfaceClusterConfigurationUpdateNotifier- Parameters:
listener- to be removed
-