Class ForceRemoveBrokersRequestTransformer
java.lang.Object
io.camunda.zeebe.dynamic.config.api.ForceRemoveBrokersRequestTransformer
- All Implemented Interfaces:
ConfigurationChangeCoordinator.ConfigurationChangeRequest
public final class ForceRemoveBrokersRequestTransformer
extends Object
implements ConfigurationChangeCoordinator.ConfigurationChangeRequest
-
Constructor Summary
ConstructorsConstructorDescriptionForceRemoveBrokersRequestTransformer(Set<MemberId> membersToRemove, MemberId coordinator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisForced()operations(ClusterConfiguration clusterConfiguration) Returns a list of operations to apply to the current configuration.
-
Constructor Details
-
ForceRemoveBrokersRequestTransformer
-
-
Method Details
-
operations
public Either<Exception,List<ClusterConfigurationChangeOperation>> operations(ClusterConfiguration clusterConfiguration) Description copied from interface:ConfigurationChangeCoordinator.ConfigurationChangeRequestReturns a list of operations to apply to the current configuration. The operations will be applied in the given order in the list.- Specified by:
operationsin interfaceConfigurationChangeCoordinator.ConfigurationChangeRequest- Parameters:
clusterConfiguration- the current cluster configuration- Returns:
- an Either with the list of operations to apply or an exception if the request is not valid.
-
isForced
public boolean isForced()- Specified by:
isForcedin interfaceConfigurationChangeCoordinator.ConfigurationChangeRequest
-