Package co.paralleluniverse.strands
Interface CheckedSuspendableCallable<V,E extends java.lang.Exception>
-
- Type Parameters:
V
- The value being returned.E
- The user exception type being thrown.
- All Superinterfaces:
java.io.Serializable
public interface CheckedSuspendableCallable<V,E extends java.lang.Exception> extends java.io.Serializable
This interface can represent any operation that may suspend the currently executingStrand
(i.e. thread or fiber). UnlikeSuspendableRunnable
, the operation represented by this interface returns a result. This is just like aCallable
, only suspendable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
call()
-
-
-
Method Detail
-
call
V call() throws SuspendExecution, java.lang.InterruptedException, E extends java.lang.Exception
- Throws:
SuspendExecution
java.lang.InterruptedException
E extends java.lang.Exception
-
-