Package org.infinispan.commands
Interface GlobalRpcCommand
-
- All Superinterfaces:
ReplicableCommand
- All Known Implementing Classes:
AbstractCacheControlCommand,CacheAvailabilityUpdateCommand,CacheJoinCommand,CacheLeaveCommand,CacheShutdownCommand,CacheShutdownRequestCommand,CacheStatusRequestCommand,RebalancePhaseConfirmCommand,RebalancePolicyUpdateCommand,RebalanceStartCommand,RebalanceStatusRequestCommand,ReplicableRunnableCommand,TopologyUpdateCommand,TopologyUpdateStableCommand
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@Injectannotations on implementations will be ignored, components must be accessed via theGlobalComponentRegistryparameter 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, readFrom, setOrigin, writeTo
-
-
-
-
Method Detail
-
invokeAsync
default CompletionStage<?> invokeAsync(GlobalComponentRegistry globalComponentRegistry) throws Throwable
Invoke the command asynchronously.- Throws:
Throwable
-
-