public class SimpleSessionCreationMetaData extends Object implements SessionCreationMetaData
| Constructor and Description |
|---|
SimpleSessionCreationMetaData() |
SimpleSessionCreationMetaData(Instant creationTime) |
| 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()
Returns the time at which this session was created.
|
Duration |
getMaxInactiveInterval()
Returns the maximum duration of time this session may remain idle before it will be expired by the session manager.
|
boolean |
invalidate()
Invalidates this session.
|
boolean |
isNew()
Indicates whether or not this session was newly created.
|
boolean |
isValid()
Indicates whether or not this session has been invalidated.
|
void |
setMaxInactiveInterval(Duration duration)
Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.
|
String |
toString() |
public SimpleSessionCreationMetaData()
public SimpleSessionCreationMetaData(Instant creationTime)
public boolean isNew()
SessionCreationMetaDataisNew in interface SessionCreationMetaDatapublic Instant getCreationTime()
ImmutableSessionCreationMetaDatagetCreationTime in interface ImmutableSessionCreationMetaDatapublic Duration getMaxInactiveInterval()
ImmutableSessionCreationMetaDatagetMaxInactiveInterval in interface ImmutableSessionCreationMetaDatapublic void setMaxInactiveInterval(Duration duration)
SessionCreationMetaDatasetMaxInactiveInterval in interface SessionCreationMetaDatapublic boolean isValid()
SessionCreationMetaDataisValid in interface SessionCreationMetaDatapublic boolean invalidate()
SessionCreationMetaDatainvalidate in interface SessionCreationMetaDatapublic void close()
SessionCreationMetaDataclose in interface AutoCloseableclose in interface SessionCreationMetaDataCopyright © 2021 JBoss by Red Hat. All rights reserved.