Package co.paralleluniverse.strands
Interface SuspendableCallable<V>
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
Actor
,BasicActor
,BehaviorActor
,EventSourceActor
,FiniteStateMachineActor
,Pipeline
,ProxyServerActor
,ServerActor
,SupervisorActor
,SuspendableUtils.VoidSuspendableCallable
public interface SuspendableCallable<V> 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
run()
-
-
-
Method Detail
-
run
V run() throws SuspendExecution, java.lang.InterruptedException
- Throws:
SuspendExecution
java.lang.InterruptedException
-
-