Package org.infinispan.commands
Interface GlobalRpcCommand
- All Superinterfaces:
ReplicableCommand
,TracedCommand
- All Known Implementing Classes:
ReplicableManagerFunctionCommand
,ReplicableRunnableCommand
,XSiteLocalEventCommand
Commands correspond to specific areas of functionality in the cluster, and can be replicated using the
GlobalInboundInvocationHandler
.
Implementations of this interface must not rely on calls to AbstractComponentRegistry.wireDependencies(Object)
,
as @Inject
annotations on implementations will be ignored, components must be accessed via the
GlobalComponentRegistry
parameter of invokeAsync(GlobalComponentRegistry)
.- Since:
- 11.0
- Author:
- Ryan Emerson
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage
<?> invokeAsync
(GlobalComponentRegistry globalComponentRegistry) Invoke the command asynchronously.Methods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, logThrowable, readFrom, setOrigin, writeTo
Methods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Method Details
-
invokeAsync
default CompletionStage<?> invokeAsync(GlobalComponentRegistry globalComponentRegistry) throws Throwable Invoke the command asynchronously.- Throws:
Throwable
-