org.mule.impl.work
Class TimedOutPooledExecutor

java.lang.Object
  extended byPooledExecutor
      extended byorg.mule.impl.work.TimedOutPooledExecutor

public class TimedOutPooledExecutor
extends PooledExecutor

PooledExecutor enforcing a timed out "blocked execution policy". The works submitted to this pooled executor MUST be a WorkWrapper.

Version:
$Rev$ $Date: 2005/04/05 06:03:20 $
See Also:
Serialized Form

Constructor Summary
TimedOutPooledExecutor()
          Creates a pooled executor.
TimedOutPooledExecutor(Channel aChannel)
          Creates a pooled executor, which uses the provided Channel as its queueing mechanism.
 
Method Summary
 void execute(java.lang.Runnable aTask)
          Executes the provided task, which MUST be an instance of WorkWrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedOutPooledExecutor

public TimedOutPooledExecutor()
Creates a pooled executor. The Channel used to enqueue the submitted Work instance is a queueless synchronous one.


TimedOutPooledExecutor

public TimedOutPooledExecutor(Channel aChannel)
Creates a pooled executor, which uses the provided Channel as its queueing mechanism.

Parameters:
aChannel - Channel to be used to enqueue the submitted Work intances.
Method Detail

execute

public void execute(java.lang.Runnable aTask)
             throws java.lang.InterruptedException
Executes the provided task, which MUST be an instance of WorkWrapper.

Throws:
java.lang.IllegalArgumentException - Indicates that the provided task is not a WorkWrapper instance.
java.lang.InterruptedException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.