Version

SmppServerHandlerImpl

public class SmppServerHandlerImpl
extends: java.lang.Object
SmppServerHandlerImpl is the default implementation of the SmppServerHandler interface. It handles core server-side SMPP session lifecycle events, including session creation, bind requests, session cleanup, and health status checks. It maintains centralized tracking of active sessions and their corresponding timers using concurrent maps.

Fields:

static org.apache.logging.log4j.Logger logger

Constructor:

public SmppServerHandlerImpl(
    SmppSessionListener callbackInterface,
    PeriodicQueuedTasks<Timer> timersQueue,
    ConcurrentHashMap<String, ConcurrentHashMap<String, SmppServerSession>> sessionsMap,
    ConcurrentHashMap<String, ConcurrentHashMap<String, HealthCheckTimer>> timersMap,
    Boolean isTls,
    Long enquireLinkInterval)

    callbackInterface: Interface used to notify external listeners of session events.
    timersQueue: Timer scheduler for managing periodic tasks (e.g., health checks).
    sessionsMap: Thread-safe map storing active SMPP server sessions, grouped by client.
    timersMap: Thread-safe map managing health check timers per session.
    isTls: Flag indicating if TLS is used for the connection.
    enquireLinkInterval: Interval for sending enquire_link messages to verify session liveness.
Initializes the SMPP server handler with dependencies and configurations.

Methods:

void sessionBindRequested(SmppSessionConfiguration sessionConfiguration, BaseBind bindRequest) Validates and handles incoming bind requests.
void sessionCreated(SmppServerSession session, BaseBindResp preparedBindResponse) Registers a new session and completes the bind process.
void sessionDestroyed(SmppServerSession session) Cleans up session data and associated resources.
Boolean isUp(String uniqueID) Returns the server health status for the given session ID.

All methods are implementations of the SmppServerHandler interface.

Start innovating with Mobius

What's next? Let's talk!

Mobius Software

As a company you'll get:

  • Get started quickly

  • Support any business model

  • Join millions of businesses

Questions? websupport@mobius.com