public class CompositeSessionMetaData extends Object implements InvalidatableSessionMetaData
| Constructor and Description |
|---|
CompositeSessionMetaData(SessionCreationMetaData creationMetaData,
SessionAccessMetaData accessMetaData) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
|
Instant |
getCreationTime() |
Instant |
getLastAccessEndTime() |
Instant |
getLastAccessStartTime() |
Duration |
getMaxInactiveInterval() |
boolean |
invalidate()
Invalidates the session.
|
boolean |
isNew() |
boolean |
isValid()
Indicates whether or not this session is still valid.
|
void |
setLastAccess(Instant startTime,
Instant endTime) |
void |
setMaxInactiveInterval(Duration duration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpiredpublic CompositeSessionMetaData(SessionCreationMetaData creationMetaData, SessionAccessMetaData accessMetaData)
public boolean isNew()
isNew in interface ImmutableSessionMetaDatapublic boolean isValid()
InvalidatableSessionMetaDataisValid in interface InvalidatableSessionMetaDatapublic boolean invalidate()
InvalidatableSessionMetaDatainvalidate in interface InvalidatableSessionMetaDatapublic Instant getCreationTime()
getCreationTime in interface ImmutableSessionMetaDatapublic Instant getLastAccessStartTime()
getLastAccessStartTime in interface ImmutableSessionMetaDatapublic Instant getLastAccessEndTime()
getLastAccessEndTime in interface ImmutableSessionMetaDatapublic Duration getMaxInactiveInterval()
getMaxInactiveInterval in interface ImmutableSessionMetaDatapublic void setLastAccess(Instant startTime, Instant endTime)
setLastAccess in interface SessionMetaDatapublic void setMaxInactiveInterval(Duration duration)
setMaxInactiveInterval in interface SessionMetaDatapublic void close()
InvalidatableSessionMetaDataclose in interface AutoCloseableclose in interface InvalidatableSessionMetaDataCopyright © 2021 JBoss by Red Hat. All rights reserved.