public interface NonBlockingInvocable extends Invocable
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.
Modifier and Type | Method and Description |
---|---|
void |
run(com.oracle.coherence.common.base.Continuation cont)
Called exactly once by the InvocationService to execute this task.
|
void run(com.oracle.coherence.common.base.Continuation cont)
Continuation
and
call Continuation.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.
cont
- the Continuation to call when the execution completes