Record Class ModelBffSessionStore.SessionSnapshot
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.ModelBffSessionStore.SessionSnapshot
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ModelBffSessionStore
public static record ModelBffSessionStore.SessionSnapshot(long version, Instant expiresAt, boolean refreshInProgress, SecretValue protectedValue)
extends Record
implements AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSnapshot(long version, Instant expiresAt, boolean refreshInProgress, SecretValue protectedValue) Creates an instance of aSessionSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprotectedValuerecord component.booleanReturns the value of therefreshInProgressrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
SessionSnapshot
public SessionSnapshot(long version, Instant expiresAt, boolean refreshInProgress, SecretValue protectedValue) Creates an instance of aSessionSnapshotrecord class.- Parameters:
version- the value for theversionrecord componentexpiresAt- the value for theexpiresAtrecord componentrefreshInProgress- the value for therefreshInProgressrecord componentprotectedValue- the value for theprotectedValuerecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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. -
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
refreshInProgress
public boolean refreshInProgress()Returns the value of therefreshInProgressrecord component.- Returns:
- the value of the
refreshInProgressrecord component
-
protectedValue
Returns the value of theprotectedValuerecord component.- Returns:
- the value of the
protectedValuerecord component
-