Record Class NativeDiagnosticHostGate.Result
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticHostGate.Result
- Enclosing class:
- NativeDiagnosticHostGate
public static record NativeDiagnosticHostGate.Result(DiagnosticAdmissionCodec.Context context, String keyId, String attemptId, String offerDigestHex, String clientFingerprintHex, long expiresAt, DiagnosticHostPolicy.Endpoint target, boolean success, String reason, InetSocketAddress selectedLocal, InetSocketAddress selectedRemote, int sentFrames, int sentBytes, int receivedFrames, int receivedBytes, long completedAt, boolean cleanupComplete)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(DiagnosticAdmissionCodec.Context context, String keyId, String attemptId, String offerDigestHex, String clientFingerprintHex, long expiresAt, DiagnosticHostPolicy.Endpoint target, boolean success, String reason, InetSocketAddress selectedLocal, InetSocketAddress selectedRemote, int sentFrames, int sentBytes, int receivedFrames, int receivedBytes, long completedAt, boolean cleanupComplete) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattemptIdrecord component.booleanReturns the value of thecleanupCompleterecord component.Returns the value of theclientFingerprintHexrecord component.longReturns the value of thecompletedAtrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.keyId()Returns the value of thekeyIdrecord component.Returns the value of theofferDigestHexrecord component.reason()Returns the value of thereasonrecord component.intReturns the value of thereceivedBytesrecord component.intReturns the value of thereceivedFramesrecord component.Returns the value of theselectedLocalrecord component.Returns the value of theselectedRemoterecord component.intReturns the value of thesentBytesrecord component.intReturns the value of thesentFramesrecord component.booleansuccess()Returns the value of thesuccessrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(DiagnosticAdmissionCodec.Context context, String keyId, String attemptId, String offerDigestHex, String clientFingerprintHex, long expiresAt, DiagnosticHostPolicy.Endpoint target, boolean success, String reason, InetSocketAddress selectedLocal, InetSocketAddress selectedRemote, int sentFrames, int sentBytes, int receivedFrames, int receivedBytes, long completedAt, boolean cleanupComplete) Creates an instance of aResultrecord class.- Parameters:
context- the value for thecontextrecord componentkeyId- the value for thekeyIdrecord componentattemptId- the value for theattemptIdrecord componentofferDigestHex- the value for theofferDigestHexrecord componentclientFingerprintHex- the value for theclientFingerprintHexrecord componentexpiresAt- the value for theexpiresAtrecord componenttarget- the value for thetargetrecord componentsuccess- the value for thesuccessrecord componentreason- the value for thereasonrecord componentselectedLocal- the value for theselectedLocalrecord componentselectedRemote- the value for theselectedRemoterecord componentsentFrames- the value for thesentFramesrecord componentsentBytes- the value for thesentBytesrecord componentreceivedFrames- the value for thereceivedFramesrecord componentreceivedBytes- the value for thereceivedBytesrecord componentcompletedAt- the value for thecompletedAtrecord componentcleanupComplete- the value for thecleanupCompleterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-
attemptId
Returns the value of theattemptIdrecord component.- Returns:
- the value of the
attemptIdrecord component
-
offerDigestHex
Returns the value of theofferDigestHexrecord component.- Returns:
- the value of the
offerDigestHexrecord component
-
clientFingerprintHex
Returns the value of theclientFingerprintHexrecord component.- Returns:
- the value of the
clientFingerprintHexrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
selectedLocal
Returns the value of theselectedLocalrecord component.- Returns:
- the value of the
selectedLocalrecord component
-
selectedRemote
Returns the value of theselectedRemoterecord component.- Returns:
- the value of the
selectedRemoterecord component
-
sentFrames
public int sentFrames()Returns the value of thesentFramesrecord component.- Returns:
- the value of the
sentFramesrecord component
-
sentBytes
public int sentBytes()Returns the value of thesentBytesrecord component.- Returns:
- the value of the
sentBytesrecord component
-
receivedFrames
public int receivedFrames()Returns the value of thereceivedFramesrecord component.- Returns:
- the value of the
receivedFramesrecord component
-
receivedBytes
public int receivedBytes()Returns the value of thereceivedBytesrecord component.- Returns:
- the value of the
receivedBytesrecord component
-
completedAt
public long completedAt()Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
cleanupComplete
public boolean cleanupComplete()Returns the value of thecleanupCompleterecord component.- Returns:
- the value of the
cleanupCompleterecord component
-