Package org.infinispan.commands
Interface GlobalRpcCommand
-
- All Superinterfaces:
ReplicableCommand
- All Known Implementing Classes:
ReplicableRunnableCommand
,XSiteViewNotificationCommand
public interface GlobalRpcCommand extends ReplicableCommand
Commands correspond to specific areas of functionality in the cluster, and can be replicated using theGlobalInboundInvocationHandler
. Implementations of this interface must not rely on calls toAbstractComponentRegistry.wireDependencies(Object)
, as@Inject
annotations on implementations will be ignored, components must be accessed via theGlobalComponentRegistry
parameter ofinvokeAsync(GlobalComponentRegistry)
.- Since:
- 11.0
- Author:
- Ryan Emerson
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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
-
-
-
-
Method Detail
-
invokeAsync
default CompletionStage<?> invokeAsync(GlobalComponentRegistry globalComponentRegistry) throws Throwable
Invoke the command asynchronously.- Throws:
Throwable
-
-