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 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 a Result record class.
      Parameters:
      context - the value for the context record component
      keyId - the value for the keyId record component
      attemptId - the value for the attemptId record component
      offerDigestHex - the value for the offerDigestHex record component
      clientFingerprintHex - the value for the clientFingerprintHex record component
      expiresAt - the value for the expiresAt record component
      target - the value for the target record component
      success - the value for the success record component
      reason - the value for the reason record component
      selectedLocal - the value for the selectedLocal record component
      selectedRemote - the value for the selectedRemote 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
      cleanupComplete - the value for the cleanupComplete 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.
    • context

      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • keyId

      public String keyId()
      Returns the value of the keyId record component.
      Returns:
      the value of the keyId record component
    • attemptId

      public String attemptId()
      Returns the value of the attemptId record component.
      Returns:
      the value of the attemptId 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
    • expiresAt

      public long expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • target

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

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

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason 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
    • 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
    • cleanupComplete

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