@Override public void unbind(long timeoutInMillis) { // is this channel still open? if (this.channel.isConnected()) { this.state.set(STATE_UNBINDING); // try a "graceful" unbind by sending an "unbind" request try { sendRequestAndGetResponse(new Unbind(), timeoutInMillis); } catch (Exception e) { // not sure if an exception while attempting to unbind matters... // we are going to just print out a warning logger.warn("Did not cleanly receive an unbind response to our unbind request, safe to ignore: " + e.getMessage()); } } else { logger.info("Session channel is already closed, not going to unbind"); } // always delegate the unbind to finish up with a "close" close(timeoutInMillis); }
@Override public void unbind(long timeoutInMillis) { // is this channel still open? if (this.channel.isConnected()) { this.state.set(STATE_UNBINDING); // try a "graceful" unbind by sending an "unbind" request try { sendRequestAndGetResponse(new Unbind(), timeoutInMillis); } catch (Exception e) { // not sure if an exception while attempting to unbind matters... // we are going to just print out a warning logger.warn("Did not cleanly receive an unbind response to our unbind request, safe to ignore: " + e.getMessage()); } } else { logger.info("Session channel is already closed, not going to unbind"); } // always delegate the unbind to finish up with a "close" close(timeoutInMillis); }
@Override public void unbind(long timeoutInMillis) { // is this channel still open? if (this.channel.isConnected()) { this.state.set(STATE_UNBINDING); // try a "graceful" unbind by sending an "unbind" request try { sendRequestAndGetResponse(new Unbind(), timeoutInMillis); } catch (Exception e) { // not sure if an exception while attempting to unbind matters... // we are going to just print out a warning logger.warn("Did not cleanly receive an unbind response to our unbind request, safe to ignore: " + e.getMessage()); } } else { logger.info("Session channel is already closed, not going to unbind"); } // always delegate the unbind to finish up with a "close" close(timeoutInMillis); }
@Override public void unbind(long timeoutInMillis) { // is this channel still open? if (this.channel.isConnected()) { this.state.set(STATE_UNBINDING); // try a "graceful" unbind by sending an "unbind" request try { sendRequestAndGetResponse(new Unbind(), timeoutInMillis); } catch (Exception e) { // not sure if an exception while attempting to unbind matters... // we are going to just print out a warning logger.warn("Did not cleanly receive an unbind response to our unbind request, safe to ignore: " + e.getMessage()); } } else { logger.info("Session channel is already closed, not going to unbind"); } // always delegate the unbind to finish up with a "close" close(timeoutInMillis); }
pdu = new BindReceiver(); } else if (commandId == SmppConstants.CMD_ID_UNBIND) { pdu = new Unbind(); } else if (commandId == SmppConstants.CMD_ID_ALERT_NOTIFICATION) { pdu = new AlertNotification();
pdu = new BindReceiver(); } else if (commandId == SmppConstants.CMD_ID_UNBIND) { pdu = new Unbind(); } else if (commandId == SmppConstants.CMD_ID_ALERT_NOTIFICATION) { pdu = new AlertNotification();
pdu = new BindReceiver(); } else if (commandId == SmppConstants.CMD_ID_UNBIND) { pdu = new Unbind(); } else if (commandId == SmppConstants.CMD_ID_ALERT_NOTIFICATION) { pdu = new AlertNotification();
pdu = new BindReceiver(); } else if (commandId == SmppConstants.CMD_ID_UNBIND) { pdu = new Unbind(); } else if (commandId == SmppConstants.CMD_ID_ALERT_NOTIFICATION) { pdu = new AlertNotification();