Interface SessionCreationMetaData
-
- All Superinterfaces:
AutoCloseable,ImmutableSessionCreationMetaData
- All Known Implementing Classes:
MutableSessionCreationMetaData,SimpleSessionCreationMetaData
public interface SessionCreationMetaData extends ImmutableSessionCreationMetaData, AutoCloseable
The more static aspects of a session's meta-data.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.booleaninvalidate()Invalidates this session.booleanisNew()Indicates whether or not this session was newly created.booleanisValid()Indicates whether or not this session has been invalidated.voidsetTimeout(Duration duration)Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.-
Methods inherited from interface org.wildfly.clustering.web.cache.session.ImmutableSessionCreationMetaData
getCreationTime, getTimeout
-
-
-
-
Method Detail
-
setTimeout
void setTimeout(Duration duration)
Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.- Parameters:
a- maximum duration of time this session may remain idle before it will be expired by the session manager.
-
isValid
boolean isValid()
Indicates whether or not this session has been invalidated.- Returns:
- true, if this session was invalidated, false otherwise.
-
invalidate
boolean invalidate()
Invalidates this session.- Returns:
- true, if this session was previous valid, false otherwise
-
isNew
boolean isNew()
Indicates whether or not this session was newly created.- Returns:
- true, if this session was newly created, false otherwise.
-
close
void close()
Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.- Specified by:
closein interfaceAutoCloseable
-
-