Home » geronimo-2.2-source-release » org.apache.geronimo.connector.work.pool » [javadoc | source]

    1   package org.apache.geronimo.connector.work.pool;
    2   
    3   import javax.resource.spi.work.WorkException;
    4   
    5   import org.apache.geronimo.connector.work.WorkerContext;
    6   import EDU.oswego.cs.dl.util.concurrent.Executor;
    7   
    8   /**
    9    *
   10    *
   11    * @version $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
   12    *
   13    * */
   14   public interface WorkExecutor {
   15   
   16       /**
   17        * This method must be implemented by sub-classes in order to provide the
   18        * relevant synchronization policy. It is called by the executeWork template
   19        * method.
   20        *
   21        * @param work Work to be executed.
   22        *
   23        * @throws javax.resource.spi.work.WorkException Indicates that the work has failed.
   24        * @throws InterruptedException Indicates that the thread in charge of the
   25        * execution of the specified work has been interrupted.
   26        */
   27        void doExecute(WorkerContext work, Executor executor)
   28               throws WorkException, InterruptedException;
   29   
   30   
   31   }

Home » geronimo-2.2-source-release » org.apache.geronimo.connector.work.pool » [javadoc | source]