Example #1
0
 @Override
 public void setEnquireLink(int enquireLink) {
   super.setEnquireLink(enquireLink);
   if (session != null) {
     session.setEnquireLinkTimer(enquireLink);
   }
 }
Example #2
0
  @Override
  public void stopGateway()
      throws TimeoutException, GatewayException, IOException, InterruptedException {
    if (session.getSessionState().isBound()) {
      session.removeSessionStateListener(stateListener);
      session.unbindAndClose();

      // super.stopGateway();
    } else {
      Logger.getInstance().logWarn("SMPP session not bound.", null, getGatewayId());
      // throw new GatewayException("Session not bound");
    }
    super.stopGateway();
  }