org.jsmpp.session
Interface SessionContext

All Superinterfaces:
ActivityNotifier
All Known Implementing Classes:
AbstractSessionContext, SMPPServerSessionContext, SMPPSessionContext

public interface SessionContext
extends ActivityNotifier

Context defined session life cycle.
OPEN -> BOUND_TX | BOUND_RX | BOUND_TRX -> UNBOUND -> CLOSE.

Author:
uudashr

Method Summary
 void bound(BindType bindType)
          Change state to bound state.
 void close()
          Change state to close.
 long getLastActivityTimestamp()
          Get the last activity of a session.
 SessionState getSessionState()
          Get current session state.
 void open()
          Change state to open.
 void unbound()
          Change state to unbound.
 
Methods inherited from interface org.jsmpp.session.ActivityNotifier
notifyActivity
 

Method Detail

open

void open()
Change state to open.


bound

void bound(BindType bindType)
Change state to bound state.

Parameters:
bindType -

unbound

void unbound()
Change state to unbound.


close

void close()
Change state to close.


getSessionState

SessionState getSessionState()
Get current session state.

Returns:
the current session state.

getLastActivityTimestamp

long getLastActivityTimestamp()
Get the last activity of a session.

Returns:
the last activity timestamp.