ClientChannelConnectListener
public class ClientChannelConnectListener
extends:
java.lang.Object
Implements:
io.netty.channel.ChannelFutureListener
io.netty.util.concurrent.GenericFutureListener<ChannelFuture>
EventListener
ClientChannelConnectListener is a Netty channel future listener used to monitor and handle the outcome of asynchronous channel connection attempts from an SMPP client. It facilitates automatic handling of connection success or failure, including initiating reconnection strategies through the use of scheduled timers.
Fields:
static org.apache.logging.log4j.Logger | logger |
Fields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE
Constructor:
public ClientChannelConnectListener(
PeriodicQueuedTasks<Timer> timersQueue,
SmppClient client,
SmppSessionConfiguration configuration)
timersQueue: Timer scheduler used to queue reconnection attempts if the connection fails.
client: The SMPP client instance initiating the connection.
configuration: SMPP session configuration for the connection being attempted.
Initializes a listener for connection attempts from an SMPP client.
Methods:
void operationComplete(ChannelFuture channelFuture) |
Called when a connection attempt completes. If the connection was successful, it proceeds to set up the session. If not, it may trigger a retry using a scheduled task. Throws an exception if the operation cannot be completed. |
Start innovating with Mobius
What's next? Let's talk!