org.compass.core.util.backport.java.util.concurrent
Class Executors.RunnableAdapter

java.lang.Object
  extended by 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


Field Summary
(package private)  Object result
           
(package private)  Runnable task
           
 
Constructor Summary
Executors.RunnableAdapter(Runnable task, Object 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
 

Field Detail

task

final Runnable task

result

final Object result
Constructor Detail

Executors.RunnableAdapter

Executors.RunnableAdapter(Runnable task,
                          Object result)
Method Detail

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.