Examples of BaseMTInfo


Examples of org.saf.business.BaseMTInfo

    }   
    return ret;
  }
 
  public synchronized BaseMTInfo getSubmitSMToTransmit(String channel, int idx) {
    BaseMTInfo info = null;
    if(channel != null) {
      Vector<BaseMTInfo> v = this.submitSMToTransmit.get(channel);
      if(v != null && idx < v.size()) {
        info = v.elementAt(idx);
      }
View Full Code Here

Examples of org.saf.business.BaseMTInfo

   
    return ret;
 
 
  BaseMTInfo get(long timeout) throws InterruptedException {
    BaseMTInfo info = null;
    if(timeout > 0) {
      info = this.queue.poll(timeout, TimeUnit.SECONDS);
    } else {
      info = this.queue.poll();
    }
View Full Code Here

Examples of org.saf.business.BaseMTInfo

    }
   
    private void transmitSynchronous() {
      boolean working = true;
      while(working == true) {
      BaseMTInfo info = null;
      try {
        info = this.queue.get(
            this.settings.getQuerylinkTimeout());
        if(info != null) {
          if(safeStop == false) {
View Full Code Here

Examples of org.saf.business.BaseMTInfo

    private void transmitAsynchronous(){
        boolean working = true;
        long retriesTimestamp =
          this.smppSettings.getSubmitRetriesTimeout() * 1000;
        while(working == true) {
      BaseMTInfo info = null;
      try {
        info = this.queue.get(
            this.settings.getQuerylinkTimeout());
        if(info != null) {
          if(safeStop == false) {
            if(info.getRetries() == 0) {
              working = sendSubmitSM(info);
              if(working == false) {
                unbind();
              }
            } else { //retries
              long timestamp = System.currentTimeMillis() -
                info.getTimestampLastRetries();
              if(timestamp >= retriesTimestamp ) {
                working = sendSubmitSM(info);
                if(working == false) {
                  unbind();
                }               
View Full Code Here

Examples of org.saf.business.BaseMTInfo

    return ret;
   
   
    private void saveToCache() {
      if(this.pduCache != null) {
      BaseMTInfo info = null;
      logger.info("saving to cache");
      long timeout =
        Globals.getInstance().getTimeoutSafestopQueuePolling();
      do {
        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.