Record Class ManagedQueueConsumerFactory.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedQueueConsumerFactory.Status
- Record Components:
phase- actual binding statereason- fixed reason without raw exceptionsworking- whether an application owner remainsreceived- complete delivery count, including safe replaysacknowledged- confirmed normal queue ACK count
- Enclosing class:
ManagedQueueConsumerFactory
public static record ManagedQueueConsumerFactory.Status(ManagedQueueConsumerFactory.Phase phase, ManagedQueueConsumerFactory.Reason reason, boolean working, long received, long acknowledged)
extends Record
Bounded aggregate host diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(ManagedQueueConsumerFactory.Phase phase, ManagedQueueConsumerFactory.Reason reason, boolean working, long received, long acknowledged) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theacknowledgedrecord 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.longreceived()Returns the value of thereceivedrecord component.final StringtoString()Returns a string representation of this record class.booleanworking()Returns the value of theworkingrecord component.
-
Constructor Details
-
Status
public Status(ManagedQueueConsumerFactory.Phase phase, ManagedQueueConsumerFactory.Reason reason, boolean working, long received, long acknowledged) Creates an instance of aStatusrecord class.- Parameters:
phase- the value for thephaserecord componentreason- the value for thereasonrecord componentworking- the value for theworkingrecord componentreceived- the value for thereceivedrecord componentacknowledged- the value for theacknowledgedrecord 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. -
phase
-
reason
-
working
-
received
-
acknowledged
public long acknowledged()Returns the value of theacknowledgedrecord component.- Returns:
- the value of the
acknowledgedrecord component
-