Record Class ManagedEventSubscriptionFactory.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedEventSubscriptionFactory.Status
- Record Components:
phase- actual lifecycle phasereason- fixed redacted reasoncursor- last authoritatively acknowledged position, or null before initializationworking- whether an actual worker still owns this binding
- Enclosing class:
ManagedEventSubscriptionFactory
public static record ManagedEventSubscriptionFactory.Status(ManagedEventSubscriptionFactory.Phase phase, ManagedEventSubscriptionFactory.Reason reason, org.j7m.middleware.distributed.EventJournal.Cursor cursor, boolean working)
extends Record
Immutable status for trusted host diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(ManagedEventSubscriptionFactory.Phase phase, ManagedEventSubscriptionFactory.Reason reason, org.j7m.middleware.distributed.EventJournal.Cursor cursor, boolean working) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.distributed.EventJournal.Cursorcursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phase()Returns the value of thephaserecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.booleanworking()Returns the value of theworkingrecord component.
-
Constructor Details
-
Status
public Status(ManagedEventSubscriptionFactory.Phase phase, ManagedEventSubscriptionFactory.Reason reason, org.j7m.middleware.distributed.EventJournal.Cursor cursor, boolean working) Creates an instance of aStatusrecord class.
-
-
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. -
phase
-
reason
-
cursor
-
working
-