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, setTopologyIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlagscanBlock, invoke, invokeAsync, isSuccessful, setOriginextractSegmentpublic 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()
ReplicableCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.output - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.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
VisitableCommandctx - invocation contextvisitor - visitor to acceptThrowable - in the event of problemspublic VisitableCommand.LoadType loadType()
public Object performOnLostData()
public String toString()
toString in class AbstractDataCommandpublic Function<EntryView.ReadEntryView<K,V>,R> getFunction()
public DataConversion getKeyDataConversion()
public DataConversion getValueDataConversion()
public Params getParams()
Copyright © 2022 JBoss by Red Hat. All rights reserved.