Record Class NativeDiagnosticProbeAttempt.Result
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticProbeAttempt.Result
- Enclosing class:
- NativeDiagnosticProbeAttempt
public static record NativeDiagnosticProbeAttempt.Result(NativeDiagnosticProbeAttempt.Job job, boolean success, NativeDiagnosticProbeAttempt.Reason reason, boolean answerVerified, boolean transportEstablished, boolean pingVerified, boolean cleanupComplete, String offerDigestHex, String clientFingerprintHex, InetSocketAddress selectedLocal, InetSocketAddress selectedRemote, InetSocketAddress attemptedRemote, int sentFrames, int sentBytes, int receivedFrames, int receivedBytes, long completedAt)
extends Record
Success requires the original ping to be echoed by the pinned host.
attemptedRemote is the verified answer destination, retained even without an established selected pair.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(NativeDiagnosticProbeAttempt.Job job, boolean success, NativeDiagnosticProbeAttempt.Reason reason, boolean answerVerified, boolean transportEstablished, boolean pingVerified, boolean cleanupComplete, String offerDigestHex, String clientFingerprintHex, InetSocketAddress selectedLocal, InetSocketAddress selectedRemote, InetSocketAddress attemptedRemote, int sentFrames, int sentBytes, int receivedFrames, int receivedBytes, long completedAt) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theanswerVerifiedrecord component.Returns the value of theattemptedRemoterecord component.booleanReturns the value of thecleanupCompleterecord component.Returns the value of theclientFingerprintHexrecord component.longReturns the value of thecompletedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.job()Returns the value of thejobrecord component.Returns the value of theofferDigestHexrecord component.booleanReturns the value of thepingVerifiedrecord 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.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransportEstablishedrecord component.
-
Constructor Details
-
Result
public Result(NativeDiagnosticProbeAttempt.Job job, boolean success, NativeDiagnosticProbeAttempt.Reason reason, boolean answerVerified, boolean transportEstablished, boolean pingVerified, boolean cleanupComplete, String offerDigestHex, String clientFingerprintHex, InetSocketAddress selectedLocal, InetSocketAddress selectedRemote, InetSocketAddress attemptedRemote, int sentFrames, int sentBytes, int receivedFrames, int receivedBytes, long completedAt) Creates an instance of aResultrecord class.- Parameters:
job- the value for thejobrecord componentsuccess- the value for thesuccessrecord componentreason- the value for thereasonrecord componentanswerVerified- the value for theanswerVerifiedrecord componenttransportEstablished- the value for thetransportEstablishedrecord componentpingVerified- the value for thepingVerifiedrecord componentcleanupComplete- the value for thecleanupCompleterecord componentofferDigestHex- the value for theofferDigestHexrecord componentclientFingerprintHex- the value for theclientFingerprintHexrecord componentselectedLocal- the value for theselectedLocalrecord componentselectedRemote- the value for theselectedRemoterecord componentattemptedRemote- the value for theattemptedRemoterecord 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 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 '=='. -
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord 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
-
answerVerified
public boolean answerVerified()Returns the value of theanswerVerifiedrecord component.- Returns:
- the value of the
answerVerifiedrecord component
-
transportEstablished
public boolean transportEstablished()Returns the value of thetransportEstablishedrecord component.- Returns:
- the value of the
transportEstablishedrecord component
-
pingVerified
public boolean pingVerified()Returns the value of thepingVerifiedrecord component.- Returns:
- the value of the
pingVerifiedrecord component
-
cleanupComplete
public boolean cleanupComplete()Returns the value of thecleanupCompleterecord component.- Returns:
- the value of the
cleanupCompleterecord 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
-
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
-
attemptedRemote
Returns the value of theattemptedRemoterecord component.- Returns:
- the value of the
attemptedRemoterecord 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
-