Package com.tangosol.net
Interface NonBlockingInvocable
- All Superinterfaces:
Invocable
,Runnable
,Serializable
NonBlockingInvocable is an
Invocable
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
Modifier and TypeMethodDescriptionvoid
run
(Continuation cont) Called exactly once by the InvocationService to execute this task.
-
Method Details
-
run
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
-