org.javasimon.callback.async
Interface Executor<T>

Type Parameters:
T -
All Known Implementing Classes:
Executors.AsyncCallbackExecutor

public interface Executor<T>

Executor is similar to Executor or ExecutorService but simpler (only one method to implement).

Author:
gerald
See Also:
Implementations

Method Summary
 T execute(Callable<T> callable)
          Main method of the executor
 

Method Detail

execute

T execute(Callable<T> callable)
          throws Throwable
Main method of the executor

Parameters:
callable - Piece of code to execute
Returns:
Result of the execution
Throws:
Throwable - Raised when execution failed


Copyright © 2013. All Rights Reserved.