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 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 a Result record class.
      Parameters:
      job - the value for the job record component
      success - the value for the success record component
      reason - the value for the reason record component
      answerVerified - the value for the answerVerified record component
      transportEstablished - the value for the transportEstablished record component
      pingVerified - the value for the pingVerified record component
      cleanupComplete - the value for the cleanupComplete record component
      offerDigestHex - the value for the offerDigestHex record component
      clientFingerprintHex - the value for the clientFingerprintHex record component
      selectedLocal - the value for the selectedLocal record component
      selectedRemote - the value for the selectedRemote record component
      attemptedRemote - the value for the attemptedRemote record component
      sentFrames - the value for the sentFrames record component
      sentBytes - the value for the sentBytes record component
      receivedFrames - the value for the receivedFrames record component
      receivedBytes - the value for the receivedBytes record component
      completedAt - the value for the completedAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • job

      Returns the value of the job record component.
      Returns:
      the value of the job record component
    • success

      public boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • reason

      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • answerVerified

      public boolean answerVerified()
      Returns the value of the answerVerified record component.
      Returns:
      the value of the answerVerified record component
    • transportEstablished

      public boolean transportEstablished()
      Returns the value of the transportEstablished record component.
      Returns:
      the value of the transportEstablished record component
    • pingVerified

      public boolean pingVerified()
      Returns the value of the pingVerified record component.
      Returns:
      the value of the pingVerified record component
    • cleanupComplete

      public boolean cleanupComplete()
      Returns the value of the cleanupComplete record component.
      Returns:
      the value of the cleanupComplete record component
    • offerDigestHex

      public String offerDigestHex()
      Returns the value of the offerDigestHex record component.
      Returns:
      the value of the offerDigestHex record component
    • clientFingerprintHex

      public String clientFingerprintHex()
      Returns the value of the clientFingerprintHex record component.
      Returns:
      the value of the clientFingerprintHex record component
    • selectedLocal

      public InetSocketAddress selectedLocal()
      Returns the value of the selectedLocal record component.
      Returns:
      the value of the selectedLocal record component
    • selectedRemote

      public InetSocketAddress selectedRemote()
      Returns the value of the selectedRemote record component.
      Returns:
      the value of the selectedRemote record component
    • attemptedRemote

      public InetSocketAddress attemptedRemote()
      Returns the value of the attemptedRemote record component.
      Returns:
      the value of the attemptedRemote record component
    • sentFrames

      public int sentFrames()
      Returns the value of the sentFrames record component.
      Returns:
      the value of the sentFrames record component
    • sentBytes

      public int sentBytes()
      Returns the value of the sentBytes record component.
      Returns:
      the value of the sentBytes record component
    • receivedFrames

      public int receivedFrames()
      Returns the value of the receivedFrames record component.
      Returns:
      the value of the receivedFrames record component
    • receivedBytes

      public int receivedBytes()
      Returns the value of the receivedBytes record component.
      Returns:
      the value of the receivedBytes record component
    • completedAt

      public long completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component