org.apache.geronimo.connector.work.pool
Interface WorkExecutor

All Known Implementing Classes:
ScheduleWorkExecutor, StartWorkExecutor, SyncWorkExecutor

public interface WorkExecutor

Version:
$Rev: 550546 $ $Date: 2007-06-26 00:52:11 +0800 (Tue, 26 Jun 2007) $

Method Summary
 void doExecute(WorkerContext work, java.util.concurrent.Executor executor)
          This method must be implemented by sub-classes in order to provide the relevant synchronization policy.
 

Method Detail

doExecute

void doExecute(WorkerContext work,
               java.util.concurrent.Executor executor)
               throws javax.resource.spi.work.WorkException,
                      java.lang.InterruptedException
This method must be implemented by sub-classes in order to provide the relevant synchronization policy. It is called by the executeWork template method.

Parameters:
work - Work to be executed.
Throws:
javax.resource.spi.work.WorkException - Indicates that the work has failed.
java.lang.InterruptedException - Indicates that the thread in charge of the execution of the specified work has been interrupted.


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.