Record Class LifecycleEvent
java.lang.Object
java.lang.Record
com.loomcache.client.LifecycleEvent
Event emitted when a client lifecycle state changes.
-
Constructor Summary
ConstructorsConstructorDescriptionLifecycleEvent(LifecycleState state) LifecycleEvent(LifecycleState state, @Nullable String nodeId) Creates an instance of aLifecycleEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringnodeId()Returns the value of thenodeIdrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LifecycleEvent
-
LifecycleEvent
Creates an instance of aLifecycleEventrecord class.- Parameters:
state- the value for thestaterecord componentnodeId- the value for thenodeIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-