org.codehaus.activemq.work.pool
Interface WorkExecutor

All Known Implementing Classes:
ScheduleWorkExecutor, StartWorkExecutor, SyncWorkExecutor

public interface WorkExecutor

Version:
$Revision: 1.1 $ $Date: 2004/10/26 16:12:07 $

Method Summary
 void doExecute(WorkerContext work, Executor 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,
                      Executor executor)
               throws 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:
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 © 2004-2005 Protique, Ltd.. All Rights Reserved.