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()
ImmutableSessionMetaData
isNew
in interface ImmutableSessionMetaData
public boolean isExpired()
ImmutableSessionMetaData
isExpired
in interface ImmutableSessionMetaData
public Date getCreationTime()
ImmutableSessionMetaData
getCreationTime
in interface ImmutableSessionMetaData
public Date getLastAccessedTime()
ImmutableSessionMetaData
getLastAccessedTime
in interface ImmutableSessionMetaData
public long getMaxInactiveInterval(TimeUnit unit)
ImmutableSessionMetaData
getMaxInactiveInterval
in interface ImmutableSessionMetaData
unit
- a time unitCopyright © 2015 JBoss by Red Hat. All rights reserved.