T - return type of the operation.public interface Invocable<T>
| Modifier and Type | Method and Description |
|---|---|
CompletionStageFuture<T> |
invoke()
Asynchronous method.
|
CompletionStageFuture<T> |
invoke(InvocationConfig invocationConfig)
Asynchronous method with
InvocationConfig. |
CompletionStageFuture<T> invoke()
CompletionStageFuture.
Once the server returns a value the future will be completed.
If the operation invocation throws an exception then the CompletionStageFuture will complete exceptionally.CompletionStageFuture which holds the result of the operation invocation.CompletionStageFuture<T> invoke(InvocationConfig invocationConfig)
InvocationConfig.
Result of the invocation will be returned as a CompletionStageFuture.
Once the server returns a value the future will be completed.
If the operation invocation throws an exception then the CompletionStageFuture will complete exceptionally.invocationConfig - used for the operation invocation.CompletionStageFuture which holds the result of the operation invocation.