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

All Known Implementing Classes:
ScheduleWorkExecutor, StartWorkExecutor, SyncWorkExecutor

public interface WorkExecutor

Version:
$Rev: 392847 $ $Date: 2006-04-10 00:58:39 +0200 (Mon, 10 Apr 2006) $

Method Summary
 void doExecute(WorkerContext work, org.apache.geronimo.pool.GeronimoExecutor executor)
          This method must be implemented by sub-classes in order to provide the relevant synchronization policy.
 

Method Detail

doExecute

public void doExecute(WorkerContext work,
                      org.apache.geronimo.pool.GeronimoExecutor executor)
               throws javax.resource.spi.work.WorkException,
                      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.
InterruptedException - Indicates that the thread in charge of the execution of the specified work has been interrupted.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.