Class ForceScaleDownRequestTransformer
java.lang.Object
io.camunda.zeebe.dynamic.config.api.ForceScaleDownRequestTransformer
- All Implemented Interfaces:
ConfigurationChangeCoordinator.ConfigurationChangeRequest
public class ForceScaleDownRequestTransformer
extends Object
implements ConfigurationChangeCoordinator.ConfigurationChangeRequest
-
Constructor Summary
ConstructorsConstructorDescriptionForceScaleDownRequestTransformer(Set<MemberId> membersToRetain, MemberId coordinator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisForced()operations(ClusterConfiguration clusterConfiguration) Returns a list of operations to apply to the current configuration.
-
Constructor Details
-
ForceScaleDownRequestTransformer
-
-
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
-