Package com.hazelcast.kubernetes
Record Class RuntimeContext.StatefulSetInfo
java.lang.Object
java.lang.Record
com.hazelcast.kubernetes.RuntimeContext.StatefulSetInfo
- Record Components:
specifiedReplicaCount
- specified number of replicas, corresponds toStatefulSetSpec.replicas
readyReplicas
- number of ready replicas, corresponds toStatefulSetStatus.readyReplicas
currentReplicas
- number of replicas created by the current revision of the StatefulSet, corresponds toStatefulSetStatus.currentReplicas
- Enclosing class:
- RuntimeContext
public static record RuntimeContext.StatefulSetInfo(int specifiedReplicaCount, int readyReplicas, int currentReplicas)
extends Record
-
Constructor Summary
ConstructorDescriptionStatefulSetInfo
(int specifiedReplicaCount, int readyReplicas, int currentReplicas) Creates an instance of aStatefulSetInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecurrentReplicas
record component.final boolean
Indicates whether some other object is "equal to" this one.from
(com.hazelcast.internal.json.JsonObject statefulSet) final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thereadyReplicas
record component.int
Returns the value of thespecifiedReplicaCount
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
StatefulSetInfo
public StatefulSetInfo(int specifiedReplicaCount, int readyReplicas, int currentReplicas) Creates an instance of aStatefulSetInfo
record class.- Parameters:
specifiedReplicaCount
- the value for thespecifiedReplicaCount
record componentreadyReplicas
- the value for thereadyReplicas
record componentcurrentReplicas
- the value for thecurrentReplicas
record component
-
-
Method Details
-
from
@Nonnull public static RuntimeContext.StatefulSetInfo from(@Nonnull com.hazelcast.internal.json.JsonObject statefulSet) -
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 with '=='. -
specifiedReplicaCount
public int specifiedReplicaCount()Returns the value of thespecifiedReplicaCount
record component.- Returns:
- the value of the
specifiedReplicaCount
record component
-
readyReplicas
public int readyReplicas()Returns the value of thereadyReplicas
record component.- Returns:
- the value of the
readyReplicas
record component
-
currentReplicas
public int currentReplicas()Returns the value of thecurrentReplicas
record component.- Returns:
- the value of the
currentReplicas
record component
-