public class ReadOnlyKeyCommand<K,V,R> extends AbstractDataCommand
VisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
static int |
COMMAND_ID |
protected Function<EntryView.ReadEntryView<K,V>,R> |
f |
protected DataConversion |
keyDataConversion |
protected Params |
params |
protected DataConversion |
valueDataConversion |
key, segment
Constructor and Description |
---|
ReadOnlyKeyCommand() |
ReadOnlyKeyCommand(Object key,
Function<EntryView.ReadEntryView<K,V>,R> f,
int segment,
Params params,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
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.
|
Function<EntryView.ReadEntryView<K,V>,R> |
getFunction() |
DataConversion |
getKeyDataConversion() |
Params |
getParams() |
DataConversion |
getValueDataConversion() |
void |
init(ComponentRegistry componentRegistry) |
VisitableCommand.LoadType |
loadType() |
Object |
performOnLostData()
Apply function on entry without any data
|
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
equals, getFlagsBitSet, getKey, getSegment, getTopologyId, hashCode, isReturnValueExpected, printFlags, setFlagsBitSet, setKey, setTopologyId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
canBlock, invoke, invokeAsync, isSuccessful, setOrigin
extractSegment
public static final int COMMAND_ID
protected Function<EntryView.ReadEntryView<K,V>,R> f
protected Params params
protected DataConversion keyDataConversion
protected DataConversion valueDataConversion
public ReadOnlyKeyCommand(Object key, Function<EntryView.ReadEntryView<K,V>,R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion)
public ReadOnlyKeyCommand()
public void init(ComponentRegistry componentRegistry)
public byte getCommandId()
ReplicableCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.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.public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic VisitableCommand.LoadType loadType()
public Object performOnLostData()
public String toString()
toString
in class AbstractDataCommand
public Function<EntryView.ReadEntryView<K,V>,R> getFunction()
public DataConversion getKeyDataConversion()
public DataConversion getValueDataConversion()
public Params getParams()
Copyright © 2021 JBoss by Red Hat. All rights reserved.