Package org.jsmpp.extra

Examples of org.jsmpp.extra.SessionState


     *         {@link SMPPServerSession} are no more valid because the
     *         connection will be close automatically.
     */
    public BindRequest waitForBind(long timeout) throws IllegalStateException,
            TimeoutException {
        SessionState currentSessionState = getSessionState();
        if (currentSessionState.equals(SessionState.OPEN)) {
            new PDUReaderWorker().start();
            try {
                return bindRequestReceiver.waitForRequest(timeout);
            } catch (IllegalStateException e) {
                throw new IllegalStateException(
View Full Code Here


                    Thread.sleep(300); // just give a little bit of delay
                }
      } catch (InterruptedException e1) {
        e1.printStackTrace();
      }
      SessionState state = session.getSessionState();
      if (!state.isReceivable()) {
        logger.debug("Not sending delivery receipt for message id {} since session state is {}",
            messageId, state);
        return;
      }
      String stringValue = Integer.valueOf(messageId.getValue(), 16).toString();
View Full Code Here

TOP

Related Classes of org.jsmpp.extra.SessionState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.