Tabnine Logo
EnquireLink
Code IndexAdd Tabnine to your IDE (free)

How to use
EnquireLink
in
com.cloudhopper.smpp.pdu

Best Java code snippets using com.cloudhopper.smpp.pdu.EnquireLink (Showing top 19 results out of 315)

origin: traccar/traccar

@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");
  }
}
origin: twitter-archive/cloudhopper-smpp

@Override
public EnquireLinkResp createResponse() {
  EnquireLinkResp resp = new EnquireLinkResp();
  resp.setSequenceNumber(this.getSequenceNumber());
  return resp;
}
origin: twitter-archive/cloudhopper-smpp

EnquireLinkResp response = ((EnquireLink) pdu).createResponse();
logger.info("Responding to enquire_link with response [{}]", response);
this.sendResponsePdu(response);
origin: com.cloudhopper/ch-smpp

@Override
public EnquireLinkResp createResponse() {
  EnquireLinkResp resp = new EnquireLinkResp();
  resp.setSequenceNumber(this.getSequenceNumber());
  return resp;
}
origin: org.restcomm.smpp/ch-smpp

EnquireLinkResp response = ((EnquireLink) pdu).createResponse();
logger.info("Responding to enquire_link with response [{}]", response);
this.sendResponsePdu(response);
origin: wizardjedi/my-spring-learning

@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);
    }
  }
}
origin: org.restcomm.smpp/ch-smpp

@Override
public EnquireLinkResp createResponse() {
  EnquireLinkResp resp = new EnquireLinkResp();
  resp.setSequenceNumber(this.getSequenceNumber());
  return resp;
}
origin: com.cloudhopper/ch-smpp

EnquireLinkResp response = ((EnquireLink) pdu).createResponse();
logger.info("Responding to enquire_link with response [{}]", response);
this.sendResponsePdu(response);
origin: org.restcomm.smpp/smpp-extensions

smppSession.enquireLink(new EnquireLink(), 10000);
origin: com.fizzed/ch-smpp

@Override
public EnquireLinkResp createResponse() {
  EnquireLinkResp resp = new EnquireLinkResp();
  resp.setSequenceNumber(this.getSequenceNumber());
  return resp;
}
origin: com.fizzed/ch-smpp

EnquireLinkResp response = ((EnquireLink) pdu).createResponse();
logger.info("Responding to enquire_link with response [{}]", response);
this.sendResponsePdu(response);
origin: org.mobicents.smsc/smpp

smppSession.enquireLink(new EnquireLink(), 10000);
origin: org.restcomm.smpp/smpp-extensions

smppSession.enquireLink(new EnquireLink(), 10000);
origin: org.mobicents.smsc/smpp

smppSession.enquireLink(new EnquireLink(), 10000);
origin: tdelenikas/smslib

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());
origin: twitter-archive/cloudhopper-smpp

  pdu = new EnquireLink();
} else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) {
  pdu = new DeliverSm();
origin: com.cloudhopper/ch-smpp

  pdu = new EnquireLink();
} else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) {
  pdu = new DeliverSm();
origin: com.fizzed/ch-smpp

  pdu = new EnquireLink();
} else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) {
  pdu = new DeliverSm();
origin: org.restcomm.smpp/ch-smpp

  pdu = new EnquireLink();
} else if (commandId == SmppConstants.CMD_ID_DELIVER_SM) {
  pdu = new DeliverSm();
com.cloudhopper.smpp.pduEnquireLink

Most used methods

  • <init>
  • createResponse
  • getSequenceNumber

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now