Package com.tangosol.net
Interface NonBlockingInvocable
-
- All Superinterfaces:
Invocable
,Runnable
,Serializable
public interface NonBlockingInvocable extends Invocable
NonBlockingInvocable is anInvocable
that can be executed asynchronously.The NonBlockingInvocable is designed to allow invocation service thread to execute the corresponding task and get invocation result without blocking.
- Since:
- Coherence 12.2.1
- Author:
- bbc 2014-10-16
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(Continuation cont)
Called exactly once by the InvocationService to execute this task.
-
-
-
Method Detail
-
run
void run(Continuation cont)
Called exactly once by the InvocationService to execute this task. The implementation must hold on the providedContinuation
and callContinuation.proceed(R)
, passing in the result, when the execution completes.Important note: failure to call the Continuation may cause the caller thread to be blocked indefinitely.
- Parameters:
cont
- the Continuation to call when the execution completes
-
-