public final class GetCacheEntryCommand extends AbstractDataCommand implements RemoteFetchingCommand
| Modifier and Type | Field and Description |
|---|---|
static byte |
COMMAND_ID |
keyflags| Constructor and Description |
|---|
GetCacheEntryCommand() |
GetCacheEntryCommand(Object key,
Set<Flag> flags,
InternalEntryFactory entryFactory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
InternalCacheEntry |
getRemotelyFetchedValue()
If the cache needs to go remotely in order to obtain the value associated to this key, then the remote value
is stored in this field.
|
Object |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
boolean |
readsExistingValues() |
void |
setRemotelyFetchedValue(InternalCacheEntry remotelyFetchedValue) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
canBlock, equals, getKey, hashCode, ignoreCommandOnStatus, isReturnValueExpected, setKey, shouldInvokegetMetadata, getTopologyId, setMetadata, setTopologyIdgetFlags, setFlagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitalwaysReadsExistingValuesgetTopologyId, setTopologyIdgetParameters, setParameterspublic static final byte COMMAND_ID
public GetCacheEntryCommand(Object key, Set<Flag> flags, InternalEntryFactory entryFactory)
public GetCacheEntryCommand()
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommandacceptVisitor in interface VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic boolean readsExistingValues()
readsExistingValues in interface VisitableCommandtrue if the command needs to read the previous values of the keys it acts on.public Object perform(InvocationContext ctx) throws Throwable
ReplicableCommandperform in interface ReplicableCommandctx - invocation contextThrowable - in the event of problems.public byte getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandpublic void setRemotelyFetchedValue(InternalCacheEntry remotelyFetchedValue)
setRemotelyFetchedValue in interface RemoteFetchingCommandgetRemotelyFetchedValue()public InternalCacheEntry getRemotelyFetchedValue()
getRemotelyFetchedValue in interface RemoteFetchingCommandpublic 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 AbstractDataCommandCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.