public interface ReplicableCommand
RpcManager
Modifier and Type | Method and Description |
---|---|
default boolean |
canBlock()
Deprecated.
since 11.0 - All commands will be required to be non blocking!
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
default Object |
invoke()
Deprecated.
since 11.0, please use
CacheRpcCommand.invokeAsync(ComponentRegistry)
or GlobalRpcCommand.invokeAsync(GlobalComponentRegistry) instead. |
default CompletableFuture<Object> |
invokeAsync()
Deprecated.
since 11.0, please use
CacheRpcCommand.invokeAsync(ComponentRegistry)
or GlobalRpcCommand.invokeAsync(GlobalComponentRegistry) instead. |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
default boolean |
isSuccessful()
If true, a return value will be marshalled as a
SuccessfulResponse ,
otherwise it will be marshalled as a UnsuccessfulResponse . |
default void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
writeTo(ObjectOutput) . |
default void |
setOrigin(Address origin)
Sets the sender's
Address . |
default void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
@Deprecated default CompletableFuture<Object> invokeAsync() throws Throwable
CacheRpcCommand.invokeAsync(ComponentRegistry)
or GlobalRpcCommand.invokeAsync(GlobalComponentRegistry)
instead.Throwable
@Deprecated default Object invoke() throws Throwable
CacheRpcCommand.invokeAsync(ComponentRegistry)
or GlobalRpcCommand.invokeAsync(GlobalComponentRegistry)
instead.Throwable
byte getCommandId()
boolean isReturnValueExpected()
ResponseGenerator
may choose to simply return null to save on marshalling
costs.default boolean isSuccessful()
SuccessfulResponse
,
otherwise it will be marshalled as a UnsuccessfulResponse
.@Deprecated default boolean canBlock()
true
if the command can block/wait, false
otherwisedefault void writeTo(ObjectOutput output) throws IOException
ObjectOutput
.output
- the stream.IOException
- if an error occurred during the I/O.default void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
writeTo(ObjectOutput)
.input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.Copyright © 2021 JBoss by Red Hat. All rights reserved.