Record Class MulticastBusDiagnostics
java.lang.Object
java.lang.Record
org.j7m.middleware.registry.mcast.MulticastBusDiagnostics
- Record Components:
sent- sent message countreceived- received message countdropped- dropped message countdecodeFailures- decode failure countstaleDrops- stale response drop countownMessageIgnores- own-message ignore countclosed- whether the adapter is closed
public record MulticastBusDiagnostics(long sent, long received, long dropped, long decodeFailures, long staleDrops, long ownMessageIgnores, boolean closed)
extends Record
Immutable multicast adapter diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionMulticastBusDiagnostics(long sent, long received, long dropped, long decodeFailures, long staleDrops, long ownMessageIgnores, boolean closed) Creates an instance of aMulticastBusDiagnosticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclosed()Returns the value of theclosedrecord component.longReturns the value of thedecodeFailuresrecord component.longdropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theownMessageIgnoresrecord component.longreceived()Returns the value of thereceivedrecord component.longsent()Returns the value of thesentrecord component.longReturns the value of thestaleDropsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MulticastBusDiagnostics
public MulticastBusDiagnostics(long sent, long received, long dropped, long decodeFailures, long staleDrops, long ownMessageIgnores, boolean closed) Creates an instance of aMulticastBusDiagnosticsrecord class.- Parameters:
sent- the value for thesentrecord componentreceived- the value for thereceivedrecord componentdropped- the value for thedroppedrecord componentdecodeFailures- the value for thedecodeFailuresrecord componentstaleDrops- the value for thestaleDropsrecord componentownMessageIgnores- the value for theownMessageIgnoresrecord componentclosed- the value for theclosedrecord 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 with thecomparemethod from their corresponding wrapper classes. -
sent
-
received
-
dropped
-
decodeFailures
public long decodeFailures()Returns the value of thedecodeFailuresrecord component.- Returns:
- the value of the
decodeFailuresrecord component
-
staleDrops
public long staleDrops()Returns the value of thestaleDropsrecord component.- Returns:
- the value of the
staleDropsrecord component
-
ownMessageIgnores
public long ownMessageIgnores()Returns the value of theownMessageIgnoresrecord component.- Returns:
- the value of the
ownMessageIgnoresrecord component
-
closed
-