org.ow2.util.pool.impl.enhanced.internal.stoppableexecution
Class StoppableExecution<E>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.internal.stoppableexecution.StoppableExecution<E>
Type Parameters:
E - return type
All Implemented Interfaces:
IArgumentsCallable<E>
Direct Known Subclasses:
CreateCB, RemoveCB

public class StoppableExecution<E>
extends java.lang.Object
implements IArgumentsCallable<E>

Author:
Gael Lalire

Constructor Summary
StoppableExecution(IArgumentsCallable<E> callable)
           
 
Method Summary
 E call(java.lang.Object... args)
           
 boolean forceStop(java.lang.Long expireTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoppableExecution

public StoppableExecution(IArgumentsCallable<E> callable)
Method Detail

call

public E call(java.lang.Object... args)
       throws StoppedExecutionException,
              java.lang.Exception
Specified by:
call in interface IArgumentsCallable<E>
Throws:
StoppedExecutionException
java.lang.Exception

forceStop

public boolean forceStop(java.lang.Long expireTime)
                  throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.