public interface CacheRpcCommand extends ReplicableCommand
RpcManager only replicates commands wrapped in a CacheRpcCommand.| Modifier and Type | Method and Description |
|---|---|
ByteString |
getCacheName() |
Address |
getOrigin()
Get the origin of the command
|
default CompletionStage<?> |
invokeAsync(ComponentRegistry registry)
Invoke the command asynchronously.
|
void |
setOrigin(Address origin)
Set the origin of the command
|
canBlock, getCommandId, invoke, invokeAsync, isReturnValueExpected, isSuccessful, readFrom, writeTodefault CompletionStage<?> invokeAsync(ComponentRegistry registry) throws Throwable
This method replaces ReplicableCommand.invoke() for remote execution.
The default implementation and ReplicableCommand.invoke() will be removed in future versions.
ThrowableByteString getCacheName()
void setOrigin(Address origin)
setOrigin in interface ReplicableCommandorigin - the sender's AddressAddress getOrigin()
Copyright © 2022 JBoss by Red Hat. All rights reserved.