DelayedReconnectTimer
public class DelayedReconnectTimer
Implements: com.mobius.software.common.dal.timers.Task, com.mobius.software.common.dal.timers.Timer
Extends java.lang.Object
DelayedReconnectTimer is used to schedule a delayed reconnection attempt for an SMPP client session. If a connection to the SMSC is lost, this timer waits for a specified period before attempting to reconnect using the provided client configuration.
Fields:
static org.apache.logging.log4j.Logger | logger |
Constructor:
public DelayedReconnectTimer(SmppClient smppClient, SmppConnectionConfiguration configuration)
smppClient: The SMPP client that will initiate the reconnect.
configuration: The connection settings used during the reconnection attempt.
Initializes a new instance of DelayedReconnectTimer that will manage a delayed reconnection attempt.
Methods:
void execute() | Triggered when the timer fires. Initiates a reconnect using the provided client and configuration. |
long getStartTime() | Returns the timestamp when this timer was started. |
Long getRealTimestamp() | Returns the actual scheduled timestamp of the task. |
void stop() | Stops the timer and cancels any scheduled execution. |
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!