Record Class SessionMutations.ClaimRefresh
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.api.SessionMutations.ClaimRefresh
- Enclosing class:
SessionMutations
public static record SessionMutations.ClaimRefresh(ApplicationSessionId applicationSessionId, long expectedVersion, String claim, Instant now, Instant deadline)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClaimRefresh(ApplicationSessionId applicationSessionId, long expectedVersion, String claim, Instant now, Instant deadline) Creates an instance of aClaimRefreshrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationSessionIdrecord component.claim()Returns the value of theclaimrecord component.deadline()Returns the value of thedeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpectedVersionrecord component.final inthashCode()Returns a hash code value for this object.now()Returns the value of thenowrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClaimRefresh
public ClaimRefresh(ApplicationSessionId applicationSessionId, long expectedVersion, String claim, Instant now, Instant deadline) Creates an instance of aClaimRefreshrecord class.- Parameters:
applicationSessionId- the value for theapplicationSessionIdrecord componentexpectedVersion- the value for theexpectedVersionrecord componentclaim- the value for theclaimrecord componentnow- the value for thenowrecord componentdeadline- the value for thedeadlinerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
applicationSessionId
Returns the value of theapplicationSessionIdrecord component.- Returns:
- the value of the
applicationSessionIdrecord component
-
expectedVersion
public long expectedVersion()Returns the value of theexpectedVersionrecord component.- Returns:
- the value of the
expectedVersionrecord component
-
claim
Returns the value of theclaimrecord component.- Returns:
- the value of the
claimrecord component
-
now
Returns the value of thenowrecord component.- Returns:
- the value of the
nowrecord component
-
deadline
Returns the value of thedeadlinerecord component.- Returns:
- the value of the
deadlinerecord component
-