public class OOBSessionMetaData<L,B extends Batch> extends Object implements SessionMetaData
| Constructor and Description |
|---|
OOBSessionMetaData(SessionManager<L,B> manager,
String id) |
| Modifier and Type | Method and Description |
|---|---|
Instant |
getCreationTime()
Returns the time this session was created.
|
Instant |
getLastAccessEndTime()
Returns the end time of the last request to access this session.
|
Instant |
getLastAccessStartTime()
Returns the start time of the last request to access this session.
|
Duration |
getMaxInactiveInterval()
Returns the time interval, using the specified unit, after which this session will expire.
|
boolean |
isExpired()
Indicates whether or not this session was previously idle for longer than the maximum inactive interval.
|
boolean |
isNew()
Indicates whether or not this session was created by the current thread.
|
void |
setLastAccess(Instant startTime,
Instant endTime)
Sets the time this session was last accessed.
|
void |
setMaxInactiveInterval(Duration duration)
Set the time interval as a duration, after which this session will expire.
|
public OOBSessionMetaData(SessionManager<L,B> manager, String id)
public boolean isNew()
ImmutableSessionMetaDataisNew in interface ImmutableSessionMetaDatapublic boolean isExpired()
ImmutableSessionMetaDataisExpired in interface ImmutableSessionMetaDatapublic Instant getCreationTime()
ImmutableSessionMetaDatagetCreationTime in interface ImmutableSessionMetaDatapublic Instant getLastAccessStartTime()
ImmutableSessionMetaDatagetLastAccessStartTime in interface ImmutableSessionMetaDatapublic Instant getLastAccessEndTime()
ImmutableSessionMetaDatagetLastAccessEndTime in interface ImmutableSessionMetaDatapublic Duration getMaxInactiveInterval()
ImmutableSessionMetaDatagetMaxInactiveInterval in interface ImmutableSessionMetaDatapublic void setLastAccess(Instant startTime, Instant endTime)
SessionMetaDatasetLastAccess in interface SessionMetaDatapublic void setMaxInactiveInterval(Duration duration)
SessionMetaDatasetMaxInactiveInterval in interface SessionMetaDataduration - a time durationCopyright © 2021 JBoss by Red Hat. All rights reserved.