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, wait
getSessionState
public AbstractSessionContext()
public AbstractSessionContext(SessionStateListener sessionStateListener)
public void open()
SessionContext
open
in interface SessionContext
public void bound(BindType bindType)
SessionContext
bound
in interface SessionContext
public void unbound()
SessionContext
unbound
in interface SessionContext
public void close()
SessionContext
close
in interface SessionContext
public void addSessionStateListener(SessionStateListener l)
public void removeSessionStateListener(SessionStateListener l)
protected void fireStateChanged(SessionState newState, SessionState oldState, Object source)
public void notifyActivity()
ActivityNotifier
notifyActivity
in interface ActivityNotifier
public long getLastActivityTimestamp()
SessionContext
getLastActivityTimestamp
in interface SessionContext
protected abstract void changeState(SessionState newState)