Interface ConfigurationChangeCoordinator.ConfigurationChangeRequest
- All Known Implementing Classes:
AddMembersTransformer,ClusterPatchRequestTransformer,ClusterScaleRequestTransformer,ExporterDisableRequestTransformer,ForceRemoveBrokersRequestTransformer,ForceScaleDownRequestTransformer,PartitionReassignRequestTransformer,RemoveMembersTransformer,ScaleRequestTransformer
- Enclosing interface:
ConfigurationChangeCoordinator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ConfigurationChangeCoordinator.ConfigurationChangeRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisForced()operations(ClusterConfiguration clusterConfiguration) Returns a list of operations to apply to the current configuration.
-
Method Details
-
operations
Either<Exception,List<ClusterConfigurationChangeOperation>> operations(ClusterConfiguration clusterConfiguration) Returns a list of operations to apply to the current configuration. The operations will be applied in the given order in the list.- 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
default boolean isForced()
-