de.hunsicker.util.concurrent
Interface Callable

All Known Implementing Classes:
TimedCallable

public interface Callable

Interface for runnable actions that bear results and/or throw Exceptions. This interface is designed to provide a common protocol for result-bearing actions that can be run independently in threads, in which case they are ordinarily used as the bases of Runnables that set FutureResults

This class was taken from the util.concurrent package written by Doug Lea. See http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html for an introduction to this package.

Author:
Doug Lea
See Also:
FutureResult

Method Summary
 java.lang.Object call()
          Perform some action that returns a result or throws an exception.
 

Method Detail

call

public java.lang.Object call()
                      throws java.lang.Exception
Perform some action that returns a result or throws an exception.

Returns:
the result.
Throws:
java.lang.Exception - if something goes wrong.


Copyright © 1997-2005 Jalopy. All Rights Reserved.