Class VirtualClusterLifecycle

java.lang.Object
io.kroxylicious.proxy.internal.VirtualClusterLifecycle

public class VirtualClusterLifecycle extends Object
Manages the lifecycle state of a single virtual cluster.

Thread-safe: state transitions and connection registration share the same monitor, so the state transition → connection snapshot sequence in startDraining() is atomic with respect to registerConnection(ClientConnectionStateMachine). This closes the TOCTOU window where a connection could be registered after the drain snapshot is taken and therefore missed by graceful drain.