Examples of LinkedQueue


Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

         try {
            cb.setCurrentThread(Thread.currentThread());
            cb.respan("XmlBlasterImpl.updateRequest-before.blocking");
            try {
               while (true) {
                  LinkedQueue updQueue = cb.getUpdateQueue();
                  if (updQueue == null)
                     throw new XmlBlasterException(glob, ErrorCode.COMMUNICATION_NOCONNECTION_CALLBACKSERVER_NOTAVAILABLE, ME, "The callback is shutdown");
                  UpdateEvent ue = (UpdateEvent)updQueue.poll(this.waitTime);
                  if (ue != null) {
                     String methodName = ue.getMethod();
                     long refId = ue.getUniqueId();
                     ret[0] = methodName;
                     ret[1] = "" + refId;
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

         engineGlob = (org.xmlBlaster.engine.ServerScope)glob.getObjectEntry(Constants.OBJECT_ENTRY_ServerScope);
      if (engineGlob == null)
         throw new XmlBlasterException(this.glob, ErrorCode.INTERNAL_UNKNOWN, ME + ".init", "could not retreive the ServerNodeScope. Am I really on the server side ?");

      this.callbackAddress = cbAddress;
      updateQueue = new LinkedQueue();
      ackQueue = new LinkedQueue();
     
      PropLong tmp = callbackAddress.getEnv("updateTimeout", 30000L);
      updateTimeout = tmp.getValue();
     
      tmp = callbackAddress.getEnv("updateAckTimeout", 30000L);
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

    */
   SubjectEntryShuffler(ServerScope global) {
      this.global = global;

      if (log.isLoggable(Level.FINER)) this.log.finer("constructor");
      this.channel = new LinkedQueue();
      this.set = new HashSet();
      Thread thread = new Thread(this, "XmlBlaster."+ME);
      thread.setDaemon(true);
      thread.start();
   }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

      private LinkedQueue channel;
     
      public Writer(String name) {
         super(name);
         this.channel = new LinkedQueue();
         setDaemon(true);
         start();
      }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

         start();
      }

      public Writer() {
         super();
         this.channel = new LinkedQueue();
         setDaemon(true);
         start();
      }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

      this.ackMode = ackMode;
      this.durableSubscriptionMap = new HashMap();
      this.open = true;
      this.transacted = transacted;
      this.controlThread = Thread.currentThread();
      this.channel = new LinkedQueue();
      this.consumerMap = new HashMap();
   }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

      {
         // Create a local tx
         currentTxId = parent.getResourceManager().createLocalTx();
      }

      executor = new ClearableQueuedExecutor(new LinkedQueue());

      clientAckList = new ArrayList();

      // TODO could optimise this to use the same map of callbackmanagers (which holds refs
      // to callbackhandlers) in the connection, instead of maintaining another map
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

      viewExecutor = new QueuedExecutor();

      this.jChannelFactory = JChannelFactory;
     
      this.pooledExecutor = new PooledExecutor(new LinkedQueue(), poolSize);
     
      this.pooledExecutor.setMinimumPoolSize(poolSize);
   }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

   {
      private Channel callbackHistory;

      public SimpleCallbackHandler()
      {
         callbackHistory = new LinkedQueue();
      }
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

   {
      private Channel callbackHistory;

      public SimpleCallbackHandler()
      {
         callbackHistory = new LinkedQueue();
      }
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.