Record Class RemoteSyncHandler.SessionState
java.lang.Object
java.lang.Record
io.quarkus.vertx.http.runtime.devmode.RemoteSyncHandler.SessionState
- Enclosing class:
RemoteSyncHandler
-
Constructor Summary
ConstructorsConstructorDescriptionSessionState(String id, int acceptedCounter, long expiresAt) Creates an instance of aSessionStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theacceptedCounterrecord 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.id()Returns the value of theidrecord component.(package private) static RemoteSyncHandler.SessionStateinactive()(package private) booleanisActive(long now) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionState
SessionState(String id, int acceptedCounter, long expiresAt) Creates an instance of aSessionStaterecord class.- Parameters:
id- the value for theidrecord componentacceptedCounter- the value for theacceptedCounterrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
inactive
-
isActive
boolean isActive(long now) -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
acceptedCounter
public int acceptedCounter()Returns the value of theacceptedCounterrecord component.- Returns:
- the value of the
acceptedCounterrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-