Package EDU.oswego.cs.dl.util.concurrent

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


   {
      private LinkedQueue buffer;

      public SimpleFailoverListener()
      {
         buffer = new LinkedQueue();
      }
View Full Code Here


  /**
   * The default constructor of the call which initializes
   * both the request and response channels.
   */
  public LuceneChannel() {
    channelRequest=new LinkedQueue();
    channelResponse=new LinkedQueue();
  }
View Full Code Here

     * one.
     *
     * @param maxSize Maximum size of the work executor pool.
     */
    public WorkExecutorPoolImpl(int maxSize) {
        pooledExecutor = new PooledExecutor(new LinkedQueue(), maxSize);
        pooledExecutor.setMinimumPoolSize(maxSize);
        pooledExecutor.waitWhenBlocked();
    }
View Full Code Here

 
  private static final ThreadGroup jbmGroup = new ThreadGroup("JBM-threads");
 
  public NamedThreadQueuedExecutor(String name)
  {
    super(new LinkedQueue());
   
    this.name = name;
   
    setThreadFactory(new Factory());
  }
View Full Code Here

   {
      private Channel callbackHistory;

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

   {
      private LinkedQueue buffer;

      public SimpleFailoverListener()
      {
         buffer = new LinkedQueue();
      }
View Full Code Here

     * one.
     *
     * @param maxSize Maximum size of the work executor pool.
     */
    public WorkExecutorPoolImpl(int maxSize) {
        pooledExecutor = new PooledExecutor(new LinkedQueue(), maxSize);
        pooledExecutor.setMinimumPoolSize(maxSize);
        pooledExecutor.waitWhenBlocked();
    }
View Full Code Here

      Connection conn = null;

      try
      {
         final LinkedQueue buffer = new LinkedQueue();
         conn = createConnectionOnServer(theCF, 1);
         conn.start();

         conn.setExceptionListener(new ExceptionListener()
         {
            public void onException(JMSException e)
            {
               try
               {
                  buffer.put(e);
               }
               catch (InterruptedException e1)
               {
                  e1.printStackTrace();
               }
            }
         });
         waitForFailoverComplete(1, conn);
         assertNull(buffer.peek());
         waitForFailoverComplete(2, conn);
         assertNull(buffer.peek());
         waitForFailoverComplete(3, conn);
         assertNull(buffer.peek());
         ServerManagement.kill(0);
         Exception e = (Exception) buffer.poll(120000);
         System.out.println("e = " + e);
         assertNotNull(e);
      }
      finally
      {
View Full Code Here

 
  private static final ThreadGroup jbmGroup = new ThreadGroup("JBM-threads");
 
  public NamedThreadQueuedExecutor(String name)
  {
    super(new LinkedQueue());
   
    this.name = name;
   
    setThreadFactory(new Factory());
   
View Full Code Here

   {
      private LinkedQueue buffer;

      public SimpleFailoverListener()
      {
         buffer = new LinkedQueue();
      }
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.LinkedQueue

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.