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, writeTo
default 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.
Throwable
ByteString getCacheName()
void setOrigin(Address origin)
setOrigin
in interface ReplicableCommand
origin
- the sender's Address
Address getOrigin()
Copyright © 2021 JBoss by Red Hat. All rights reserved.