public class SimpleImmutableSessionMetaData extends Object implements ImmutableSessionMetaData
| Constructor and Description |
|---|
SimpleImmutableSessionMetaData(ImmutableSessionMetaData metaData) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationTime()
Returns the time this session was created.
|
Date |
getLastAccessedTime()
Returns the time this session was last accessed.
|
long |
getMaxInactiveInterval(TimeUnit unit)
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.
|
public SimpleImmutableSessionMetaData(ImmutableSessionMetaData metaData)
public boolean isNew()
ImmutableSessionMetaDataisNew in interface ImmutableSessionMetaDatapublic boolean isExpired()
ImmutableSessionMetaDataisExpired in interface ImmutableSessionMetaDatapublic Date getCreationTime()
ImmutableSessionMetaDatagetCreationTime in interface ImmutableSessionMetaDatapublic Date getLastAccessedTime()
ImmutableSessionMetaDatagetLastAccessedTime in interface ImmutableSessionMetaDatapublic long getMaxInactiveInterval(TimeUnit unit)
ImmutableSessionMetaDatagetMaxInactiveInterval in interface ImmutableSessionMetaDataunit - a time unitCopyright © 2014 JBoss by Red Hat. All rights reserved.