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.replicasreadyReplicas- number of ready replicas, corresponds toStatefulSetStatus.readyReplicascurrentReplicas- 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
- Since:
- 5.6
-
Constructor Summary
ConstructorsConstructorDescriptionStatefulSetInfo(int specifiedReplicaCount, int readyReplicas, int currentReplicas) Creates an instance of aStatefulSetInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecurrentReplicasrecord component.final booleanIndicates whether some other object is "equal to" this one.from(com.hazelcast.internal.json.JsonObject statefulSet) final inthashCode()Returns a hash code value for this object.intReturns the value of thereadyReplicasrecord component.intReturns the value of thespecifiedReplicaCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatefulSetInfo
public StatefulSetInfo(int specifiedReplicaCount, int readyReplicas, int currentReplicas) Creates an instance of aStatefulSetInforecord class.- Parameters:
specifiedReplicaCount- the value for thespecifiedReplicaCountrecord componentreadyReplicas- the value for thereadyReplicasrecord componentcurrentReplicas- the value for thecurrentReplicasrecord 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 thespecifiedReplicaCountrecord component.- Returns:
- the value of the
specifiedReplicaCountrecord component
-
readyReplicas
public int readyReplicas()Returns the value of thereadyReplicasrecord component.- Returns:
- the value of the
readyReplicasrecord component
-
currentReplicas
public int currentReplicas()Returns the value of thecurrentReplicasrecord component.- Returns:
- the value of the
currentReplicasrecord component
-