Record Class JSentinelVersionEnforcer.EnforcementOutcome.SessionStale
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.session.JSentinelVersionEnforcer.EnforcementOutcome.SessionStale
- Record Components:
status- drift detail (snapshot + current)
- All Implemented Interfaces:
JSentinelVersionEnforcer.EnforcementOutcome
- Enclosing interface:
JSentinelVersionEnforcer.EnforcementOutcome
public static record JSentinelVersionEnforcer.EnforcementOutcome.SessionStale(JSentinelVersionStatus.Drifted status)
extends Record
implements JSentinelVersionEnforcer.EnforcementOutcome
The request must be refused — session security version no
longer matches.
-
Nested Class Summary
Nested classes/interfaces inherited from interface JSentinelVersionEnforcer.EnforcementOutcome
JSentinelVersionEnforcer.EnforcementOutcome.Continue, JSentinelVersionEnforcer.EnforcementOutcome.SessionStaleModifier and TypeInterfaceDescriptionstatic final recordThe request continues — versions match.static final recordThe request must be refused — session security version no longer matches. -
Field Summary
Fields inherited from interface JSentinelVersionEnforcer.EnforcementOutcome
CONTINUEModifier and TypeFieldDescriptionstatic final JSentinelVersionEnforcer.EnforcementOutcome.ContinueSingleton shared "request continues" outcome. -
Constructor Summary
ConstructorsConstructorDescriptionValidates the component. -
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.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JSentinelVersionEnforcer.EnforcementOutcome
isStale
-
Constructor Details
-
SessionStale
Validates the 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. All components in this record class are compared withObjects::equals(Object,Object). -
status
-