@Override public void run() { SmppSession smppSession = smppClient.getSession(); if (smppSession != null && smppSession.isBound()) { try { smppSession.enquireLink(new EnquireLink(), enquireLinkTimeout); } catch (SmppTimeoutException | SmppChannelException | RecoverablePduException | UnrecoverablePduException error) { LOGGER.warn("Enquire link failed, executing reconnect: ", error); smppClient.scheduleReconnect(); } catch (InterruptedException error) { LOGGER.info("Enquire link interrupted, probably killed by reconnecting"); } } else { LOGGER.warn("Enquire link running while session is not connected"); } }
@Override public void run() { if (client.state == ClientState.BOUND) { SmppSession session = client.getSession(); log.debug("Send elink"); try { session.enquireLink(new EnquireLink(), TimeUnit.SECONDS.toMillis(10)); log.debug("Elink sent successfull"); } catch (RecoverablePduException ex) { log.debug("{}", ex); } catch (UnrecoverablePduException ex) { log.debug("{}", ex); } catch (SmppTimeoutException ex) { client.bind(); log.debug("{}", ex); } catch (SmppChannelException ex) { log.debug("{}", ex); } catch (InterruptedException ex) { log.debug("{}", ex); } } }
smppSession.enquireLink(new EnquireLink(), 10000);
smppSession.enquireLink(new EnquireLink(), 10000);
smppSession.enquireLink(new EnquireLink(), 10000);
smppSession.enquireLink(new EnquireLink(), 10000);
this.smppConfig.setCountersEnabled(true); this.smppSession = this.clientBootstrap.bind(this.smppConfig, this.sessionHandler); this.enquireLinkResp = this.smppSession.enquireLink(new EnquireLink(), this.timeout); if (this.enquireLinkResp.getCommandStatus() != SmppConstants.STATUS_OK) throw new Exception("Error connection to SMPP host: " + this.enquireLinkResp.getResultMessage());
pdu = new EnquireLink(); } else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) { pdu = new DeliverSm();
pdu = new EnquireLink(); } else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) { pdu = new DeliverSm();
pdu = new EnquireLink(); } else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) { pdu = new DeliverSm();
pdu = new EnquireLink(); } else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) { pdu = new DeliverSm();