public abstract class AbstractSessionContext extends Object implements SessionContext
| Constructor and Description |
|---|
AbstractSessionContext() |
AbstractSessionContext(SessionStateListener sessionStateListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionStateListener(SessionStateListener l) |
void |
bound(BindType bindType)
Change state to bound state.
|
protected abstract void |
changeState(SessionState newState) |
void |
close()
Change state to close.
|
protected void |
fireStateChanged(SessionState newState,
SessionState oldState,
Object source) |
long |
getLastActivityTimestamp()
Get the last activity of a session.
|
void |
notifyActivity()
Notify an activity.
|
void |
open()
Change state to open.
|
void |
removeSessionStateListener(SessionStateListener l) |
void |
unbound()
Change state to unbound.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSessionStatepublic AbstractSessionContext()
public AbstractSessionContext(SessionStateListener sessionStateListener)
public void open()
SessionContextopen in interface SessionContextpublic void bound(BindType bindType)
SessionContextbound in interface SessionContextpublic void unbound()
SessionContextunbound in interface SessionContextpublic void close()
SessionContextclose in interface SessionContextpublic void addSessionStateListener(SessionStateListener l)
public void removeSessionStateListener(SessionStateListener l)
protected void fireStateChanged(SessionState newState, SessionState oldState, Object source)
public void notifyActivity()
ActivityNotifiernotifyActivity in interface ActivityNotifierpublic long getLastActivityTimestamp()
SessionContextgetLastActivityTimestamp in interface SessionContextprotected abstract void changeState(SessionState newState)