Record Class NativeDiagnosticProbeAttempt.Job
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticProbeAttempt.Job
- Enclosing class:
- NativeDiagnosticProbeAttempt
public static record NativeDiagnosticProbeAttempt.Job(DiagnosticAdmissionCodec.Context context, String attemptIdHex, DiagnosticHostPolicy.Endpoint target, String hostFingerprintHex, long expiresAt)
extends Record
Trusted local job input, NOT signed-job or target-ownership evidence. Expiry/attempt must never be reissued.
-
Constructor Summary
ConstructorsConstructorDescriptionJob(DiagnosticAdmissionCodec.Context context, String attemptIdHex, DiagnosticHostPolicy.Endpoint target, String hostFingerprintHex, long expiresAt) Creates an instance of aJobrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattemptIdHexrecord 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.Returns the value of thehostFingerprintHexrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Job
public Job(DiagnosticAdmissionCodec.Context context, String attemptIdHex, DiagnosticHostPolicy.Endpoint target, String hostFingerprintHex, long expiresAt) Creates an instance of aJobrecord class.- Parameters:
context- the value for thecontextrecord componentattemptIdHex- the value for theattemptIdHexrecord componenttarget- the value for thetargetrecord componenthostFingerprintHex- the value for thehostFingerprintHexrecord componentexpiresAt- the value for theexpiresAtrecord 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
-
attemptIdHex
Returns the value of theattemptIdHexrecord component.- Returns:
- the value of the
attemptIdHexrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
hostFingerprintHex
Returns the value of thehostFingerprintHexrecord component.- Returns:
- the value of the
hostFingerprintHexrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-