donaldp     01/04/15 05:11:16

  Added:       src/java/org/apache/phoenix/engine/facilities
                        ThreadManager.java
  Log:
  Defined ThreadManager interface.
  
  Revision  Changes    Path
  1.1                  
jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilities/ThreadManager.java
  
  Index: ThreadManager.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.phoenix.engine.facilities;
  
  import org.apache.avalon.atlantis.Facility;
  import org.apache.avalon.util.thread.ThreadPool;
  
  /**
   * This facility manages the policy for an application instance.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
   */
  public interface ThreadManager
      extends Facility
  {
      /**
       * Retrieve thread pool by name.
       *
       * @param name the name of thread pool
       * @return the threadpool
       * @exception IllegalArgumentException if the name of thread pool is 
       *            invalid or named pool does not exist
       */
      ThreadPool getThreadPool( String name ) 
          throws IllegalArgumentException;
  
      /**
       * Retrieve the default thread pool.
       *
       * @return the thread pool
       */
      ThreadPool getDefaultThreadPool();
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to