Class AssignmentConfigs
java.lang.Object
org.apache.kafka.streams.processor.assignment.AssignmentConfigs
Assignment related configs for the Kafka Streams
TaskAssignor
.-
Constructor Summary
ConstructorDescriptionAssignmentConfigs
(long acceptableRecoveryLag, int maxWarmupReplicas, int numStandbyReplicas, long probingRebalanceIntervalMs, List<String> rackAwareAssignmentTags, int rackAwareTrafficCost, int rackAwareNonOverlapCost, String rackAwareAssignmentStrategy) AssignmentConfigs
(long acceptableRecoveryLag, int maxWarmupReplicas, int numStandbyReplicas, long probingRebalanceIntervalMs, List<String> rackAwareAssignmentTags, OptionalInt rackAwareTrafficCost, OptionalInt rackAwareNonOverlapCost, String rackAwareAssignmentStrategy) AssignmentConfigs
(Long acceptableRecoveryLag, Integer maxWarmupReplicas, Integer numStandbyReplicas, Long probingRebalanceIntervalMs, List<String> rackAwareAssignmentTags) -
Method Summary
Modifier and TypeMethodDescriptionlong
The configured acceptable recovery lag according toStreamsConfig.ACCEPTABLE_RECOVERY_LAG_CONFIG
int
The maximum warmup replicas as configured viaStreamsConfig.MAX_WARMUP_REPLICAS_CONFIG
int
The number of standby replicas as configured viaStreamsConfig.NUM_STANDBY_REPLICAS_CONFIG
static AssignmentConfigs
of
(StreamsConfig configs) long
The probing rebalance interval in milliseconds as configured viaStreamsConfig.PROBING_REBALANCE_INTERVAL_MS_CONFIG
The rack-aware assignment strategy as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_STRATEGY_CONFIG
The rack-aware assignment tags as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_TAGS_CONFIG
The rack-aware assignment non-overlap cost as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_NON_OVERLAP_COST_CONFIG
The rack-aware assignment traffic cost as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_TRAFFIC_COST_CONFIG
toString()
-
Constructor Details
-
AssignmentConfigs
public AssignmentConfigs(long acceptableRecoveryLag, int maxWarmupReplicas, int numStandbyReplicas, long probingRebalanceIntervalMs, List<String> rackAwareAssignmentTags, OptionalInt rackAwareTrafficCost, OptionalInt rackAwareNonOverlapCost, String rackAwareAssignmentStrategy) -
AssignmentConfigs
-
AssignmentConfigs
-
-
Method Details
-
of
-
acceptableRecoveryLag
public long acceptableRecoveryLag()The configured acceptable recovery lag according toStreamsConfig.ACCEPTABLE_RECOVERY_LAG_CONFIG
-
maxWarmupReplicas
public int maxWarmupReplicas()The maximum warmup replicas as configured viaStreamsConfig.MAX_WARMUP_REPLICAS_CONFIG
-
numStandbyReplicas
public int numStandbyReplicas()The number of standby replicas as configured viaStreamsConfig.NUM_STANDBY_REPLICAS_CONFIG
-
probingRebalanceIntervalMs
public long probingRebalanceIntervalMs()The probing rebalance interval in milliseconds as configured viaStreamsConfig.PROBING_REBALANCE_INTERVAL_MS_CONFIG
-
rackAwareAssignmentTags
The rack-aware assignment tags as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_TAGS_CONFIG
-
rackAwareTrafficCost
The rack-aware assignment traffic cost as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_TRAFFIC_COST_CONFIG
-
rackAwareNonOverlapCost
The rack-aware assignment non-overlap cost as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_NON_OVERLAP_COST_CONFIG
-
rackAwareAssignmentStrategy
The rack-aware assignment strategy as configured viaStreamsConfig.RACK_AWARE_ASSIGNMENT_STRATEGY_CONFIG
-
toString
-