|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionObserver
A connection observer implementation is used to receive event updates from an Connection object. If an application wishes to use asynchronous communications mode with the API framework, it will need to provide an implementation of this interface to the Connection to be notified of SMPP events (such as packet reception).
Session.addObserver(org.mobicents.protocols.smpp.event.SessionObserver)| Method Summary | |
|---|---|
void |
packetReceived(Session source,
SMPPPacket packet)
Called when a new SMPP packet has been received from the SMSC. |
void |
update(Session source,
SMPPEvent event)
Called for all events other than packet reception. |
| Method Detail |
|---|
void packetReceived(Session source,
SMPPPacket packet)
SMPPPacket.getCommandId().
source - the Connection which received the packet.packet - the SMPP packet received.
void update(Session source,
SMPPEvent event)
packetReceived(org.mobicents.protocols.smpp.Session, org.mobicents.protocols.smpp.message.SMPPPacket)method is called in
that case. The update method is mostly used for control
events, such as signifying the exit of the receiver thread or notifying
of error conditions.
source - the Connection which received the packet.event - the SMPP event type.com.adenki.smpp.event.SMPPEvent#getType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||