Version
SmppSessionHandler
public interface SmppSessionHandler
SmppSessionHandler defines a callback interface for handling events in an active SMPP session. It is used to respond to incoming PDUs, track session state changes, and handle errors. Implementations of this interface are attached to a session to define how the application reacts to SMPP communication and exceptions.
This interface allows both client and server sessions to be monitored and controlled based on runtime events.
Methods:
void fireChannelUnexpectedlyClosed() | Called when the TCP channel is closed without a proper shutdown or unbind. |
void firePduRequestReceived(PduRequest pduRequest) | Triggered when a request PDU is received from the peer. |
void firePduRequestExpired(PduRequest pduRequest) | Triggered when a sent request does not receive a response in time. |
void fireExpectedPduResponseReceived(PduRequest pduRequest, PduResponse pduResponse) | Called when a response arrives for a previously sent request. |
void fireUnexpectedPduResponseReceived(PduResponse pduResponse) | Called when a response arrives that does not match any tracked request. |
void fireUnrecoverablePduException(UnrecoverablePduException e) | Triggered on protocol-level errors that cannot be handled automatically. |
void fireRecoverablePduException(RecoverablePduException e) | Triggered for protocol issues that can be retried or handled without closing the session. |
void fireUnknownThrowable(Throwable t) | Catches any unexpected runtime error that occurs during session processing. |
void setSession(SmppSession session) | Associates this handler instance with a specific SMPP session. |
Start innovating with Mobius
What's next? Let's talk!