Record Class InstanceStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.InstanceStatus
- Record Components:
ref- object referenceobjectState- lifecycle stateregistrationState- registry visibility state
public record InstanceStatus(ObjectRef ref, ObjectState objectState, RegistrationState registrationState)
extends Record
Immutable status of one exported runtime object.
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceStatus(ObjectRef ref, ObjectState objectState, RegistrationState registrationState) Creates an instance of aInstanceStatusrecord 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.Returns the value of theobjectStaterecord component.ref()Returns the value of therefrecord component.Returns the value of theregistrationStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstanceStatus
Creates an instance of aInstanceStatusrecord class.- Parameters:
ref- the value for therefrecord componentobjectState- the value for theobjectStaterecord componentregistrationState- the value for theregistrationStaterecord 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). -
ref
-
objectState
Returns the value of theobjectStaterecord component.- Returns:
- the value of the
objectStaterecord component
-
registrationState
Returns the value of theregistrationStaterecord component.- Returns:
- the value of the
registrationStaterecord component
-