public enum LeaseAssignmentStrategy extends Enum<LeaseAssignmentStrategy>
| Enum Constant and Description |
|---|
LEASE_COUNT_BASED
Lease count-based assignment.
|
WORKER_UTILIZATION_AWARE
KCL v3 default strategy: Worker utilization-aware assignment.
|
| Modifier and Type | Method and Description |
|---|---|
static LeaseAssignmentStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaseAssignmentStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeaseAssignmentStrategy WORKER_UTILIZATION_AWARE
Uses advanced algorithms that consider worker CPU, memory, and throughput metrics to make intelligent lease assignment decisions. Provides optimal load balancing for heterogeneous worker fleets and varying shard throughput.
Features: - Variance-based load balancing - Worker utilization metrics consideration - Dampening and gradual rebalancing - Throughput-aware assignment
public static final LeaseAssignmentStrategy LEASE_COUNT_BASED
Uses simple lease count balancing where the goal is to distribute leases evenly across workers based purely on lease count, ignoring worker utilization metrics.
public static LeaseAssignmentStrategy[] values()
for (LeaseAssignmentStrategy c : LeaseAssignmentStrategy.values()) System.out.println(c);
public static LeaseAssignmentStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.