org.compass.core.util.backport.java.util.concurrent
Class Executors.RunnableAdapter
java.lang.Object
org.compass.core.util.backport.java.util.concurrent.Executors.RunnableAdapter
- All Implemented Interfaces:
- Callable
- Enclosing class:
- Executors
static final class Executors.RunnableAdapter
- extends Object
- implements Callable
A callable that runs given task and returns given result
|
Method Summary |
Object |
call()
Computes a result, or throws an exception if unable to do so. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
task
final Runnable task
result
final Object result
Executors.RunnableAdapter
Executors.RunnableAdapter(Runnable task,
Object result)
call
public Object call()
- Description copied from interface:
Callable
- Computes a result, or throws an exception if unable to do so.
- Specified by:
call in interface Callable
- Returns:
- computed result
Copyright (c) 2004-2006 The Compass Project.