Package io.kroxylicious.proxy.internal
Record Class VirtualClusterLifecycleState.Draining
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.VirtualClusterLifecycleState.Draining
- All Implemented Interfaces:
VirtualClusterLifecycleState
- Enclosing interface:
VirtualClusterLifecycleState
public static record VirtualClusterLifecycleState.Draining(Duration drainTimeout)
extends Record
implements VirtualClusterLifecycleState
New connections are rejected. Existing in-flight requests are completing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.kroxylicious.proxy.internal.VirtualClusterLifecycleState
VirtualClusterLifecycleState.Draining, VirtualClusterLifecycleState.Failed, VirtualClusterLifecycleState.Initializing, VirtualClusterLifecycleState.Serving, VirtualClusterLifecycleState.Stopped -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedrainTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Drain complete, cluster permanently removed.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Draining
Creates an instance of aDrainingrecord class.- Parameters:
drainTimeout- the value for thedrainTimeoutrecord component
-
-
Method Details
-
toStopped
Drain complete, cluster permanently removed.- Returns:
- the new stopped state
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
drainTimeout
Returns the value of thedrainTimeoutrecord component.- Returns:
- the value of the
drainTimeoutrecord component
-