Record Class NativeAdmissionServerChannel.Event
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signalling.admission.NativeAdmissionServerChannel.Event
- Enclosing class:
- NativeAdmissionServerChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theoccurredAtrecord component.reason()Returns the value of thereasonrecord component.stage()Returns the value of thestagerecord component.ticketId()Returns the value of theticketIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevalidationToCreationNanosrecord component.
-
Constructor Details
-
Event
public Event(String ticketId, String stage, String reason, long occurredAt, long validationToCreationNanos) Creates an instance of aEventrecord class.- Parameters:
ticketId- the value for theticketIdrecord componentstage- the value for thestagerecord componentreason- the value for thereasonrecord componentoccurredAt- the value for theoccurredAtrecord componentvalidationToCreationNanos- the value for thevalidationToCreationNanosrecord 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 '=='. -
ticketId
Returns the value of theticketIdrecord component.- Returns:
- the value of the
ticketIdrecord component
-
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
occurredAt
public long occurredAt()Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
validationToCreationNanos
public long validationToCreationNanos()Returns the value of thevalidationToCreationNanosrecord component.- Returns:
- the value of the
validationToCreationNanosrecord component
-