Class LoomSession
java.lang.Object
com.loomcache.springboot.session.LoomSession
- All Implemented Interfaces:
Serializable, org.springframework.session.Session
public final class LoomSession
extends Object
implements org.springframework.session.Session, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLoomSession(@NonNull String id, @NonNull Instant creationTime, @NonNull Instant lastAccessedTime, @NonNull Duration maxInactiveInterval) -
Method Summary
Modifier and TypeMethodDescription@NonNull String<T> @Nullable TgetAttribute(@NonNull String attributeName) @NonNull Instant@NonNull StringgetId()@NonNull Instant@NonNull DurationbooleanvoidremoveAttribute(@NonNull String attributeName) voidsetAttribute(@NonNull String attributeName, @Nullable Object attributeValue) voidsetLastAccessedTime(@NonNull Instant lastAccessedTime) voidsetMaxInactiveInterval(@NonNull Duration interval) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.session.Session
getAttributeOrDefault, getRequiredAttribute
-
Constructor Details
-
LoomSession
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.springframework.session.Session
-
changeSessionId
- Specified by:
changeSessionIdin interfaceorg.springframework.session.Session
-
getAttribute
- Specified by:
getAttributein interfaceorg.springframework.session.Session
-
getAttributeNames
-
setAttribute
-
removeAttribute
- Specified by:
removeAttributein interfaceorg.springframework.session.Session
-
getCreationTime
- Specified by:
getCreationTimein interfaceorg.springframework.session.Session
-
setLastAccessedTime
- Specified by:
setLastAccessedTimein interfaceorg.springframework.session.Session
-
getLastAccessedTime
- Specified by:
getLastAccessedTimein interfaceorg.springframework.session.Session
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveIntervalin interfaceorg.springframework.session.Session
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveIntervalin interfaceorg.springframework.session.Session
-
isExpired
public boolean isExpired()- Specified by:
isExpiredin interfaceorg.springframework.session.Session
-