public class ClusteredGetCommand extends BaseClusteredReadCommand implements SegmentSpecificCommand
VisitableCommand and hence not passed up the
interceptor chain.
| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
topologyIdcacheName, origin| Constructor and Description |
|---|
ClusteredGetCommand(ByteString cacheName) |
ClusteredGetCommand(Object key,
ByteString cacheName,
int segment,
long flags) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
GlobalTransaction |
getGlobalTransaction()
Deprecated.
|
Object |
getKey() |
int |
getSegment()
Returns the segment that this key maps to.
|
int |
hashCode() |
CompletionStage<?> |
invokeAsync(ComponentRegistry componentRegistry)
Invokes a logical "get(key)" on a remote cache and returns results.
|
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
boolean |
isWrite() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setWrite(boolean write) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
getFlagsBitSet, getTopologyId, hasAnyFlag, printFlags, setFlagsBitSet, setTopologyIdgetCacheName, getOrigin, setOriginclone, finalize, getClass, notify, notifyAll, wait, wait, waitextractSegmentcanBlock, invoke, invokeAsync, isSuccessful, setOriginpublic static final byte COMMAND_ID
public ClusteredGetCommand(ByteString cacheName)
public ClusteredGetCommand(Object key, ByteString cacheName, int segment, long flags)
public CompletionStage<?> invokeAsync(ComponentRegistry componentRegistry) throws Throwable
invokeAsync in interface CacheRpcCommandThrowable@Deprecated public GlobalTransaction getGlobalTransaction()
public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.writeTo in interface ReplicableCommandoutput - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.writeTo(ObjectOutput).readFrom in interface ReplicableCommandinput - the stream to read.IOException - if an error occurred during the I/O.ClassNotFoundException - if it tries to load an undefined class.public String toString()
toString in class BaseRpcCommandpublic boolean isWrite()
public void setWrite(boolean write)
public int getSegment()
SegmentSpecificCommandgetSegment in interface SegmentSpecificCommandpublic Object getKey()
public boolean isReturnValueExpected()
ReplicableCommandResponseGenerator may choose to simply return null to save on marshalling
costs.isReturnValueExpected in interface ReplicableCommandCopyright © 2022 JBoss by Red Hat. All rights reserved.