use of org.mobicents.tools.smpp.balancer.timers.ServerTimerConnectionCheck in project load-balancer by RestComm.
the class ClientConnectionImpl method generateEnquireLink.
@Override
public void generateEnquireLink() {
Pdu packet = new EnquireLink();
packet.setSequenceNumber(lastSequenceNumberSent.incrementAndGet());
ChannelBuffer buffer = null;
try {
buffer = transcoder.encode(packet);
} catch (UnrecoverablePduException e) {
logger.error("Encode error: ", e);
} catch (RecoverablePduException e) {
logger.error("Encode error: ", e);
}
isEnquireLinkSent = true;
connectionCheck = new ServerTimerConnectionCheck(this);
// connectionCheckServerSideTimer = monitorExecutor.schedule(connectionCheck,timeoutConnectionCheckServerSide,TimeUnit.MILLISECONDS);
if (logger.isDebugEnabled())
logger.debug("LB sent enquire_link to " + channel.getRemoteAddress().toString() + ". sessionId : " + sessionId);
channel.write(buffer);
}
Aggregations