Version

BindTimeoutTask

public class BindTimeoutTask
extends java.lang.Object
All Implemented Interfaces:
com.mobius.software.common.dal.timers.Task, com.mobius.software.common.dal.timers.Timer
This class represents a timeout mechanism for the SMPP bind process. If the bind operation does not complete within the specified time, the task is triggered to handle the timeout condition. It typically logs the timeout and closes the channel to ensure no hanging or invalid session remains.

Fields:

static org.apache.logging.log4j.Logger logger

Constructor:

public BindTimeoutTask(io.netty.channel.Channel channel, String channelName, long timeout)
    channel: The Netty Channel object representing the SMPP connection being established.
    channelName: A human-readable identifier for the channel (usually used in logging).
    timeout: The time in milliseconds after which the bind is considered to have timed out.
Creates a new BindTimeoutTask instance that monitors a specific Netty channel during the SMPP bind operation.

Methods:

   
   
   
   
   
   
   
   


public void execute()        Executes the timeout logic; closes the channel and logs the timeout.
public long getStartTime()    Returns the time this task was initially scheduled to start.
public Long getRealTimestamp()    Returns the current timestamp used for scheduling comparisons.
public void stop()        Stops the task, typically when bind completes successfully before timeout.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mobius.software.common.dal.timers.Timer
getQueueIndex

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