Record Class NodeView
java.lang.Object
java.lang.Record
org.j7m.middleware.cluster.NodeView
- Record Components:
nodeId- configured hosting identityreleaseId- actual selected release, or empty when unavailableready- actual application admission readinessdraining- whether new invocations are stoppedinFlight- currently admitted invocationsversion- local durable management generation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandraining()Returns the value of thedrainingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intinFlight()Returns the value of theinFlightrecord component.nodeId()Returns the value of thenodeIdrecord component.booleanready()Returns the value of thereadyrecord component.Returns the value of thereleaseIdrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
NodeView
public NodeView(String nodeId, String releaseId, boolean ready, boolean draining, int inFlight, long version) Creates an instance of aNodeViewrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentreleaseId- the value for thereleaseIdrecord componentready- the value for thereadyrecord componentdraining- the value for thedrainingrecord componentinFlight- the value for theinFlightrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nodeId
-
releaseId
-
ready
-
draining
-
inFlight
-
version
-