public class GetKeysInGroupCommand extends AbstractTopologyAffectedCommand implements VisitableCommand
VisitableCommand
that fetches the keys belonging to a group.VisitableCommand.LoadType
Modifier and Type | Field and Description |
---|---|
static byte |
COMMAND_ID |
Constructor and Description |
---|
GetKeysInGroupCommand() |
GetKeysInGroupCommand(long flagsBitSet,
Object groupName) |
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.
|
Object |
getGroupName() |
boolean |
isGroupOwner() |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
VisitableCommand.LoadType |
loadType() |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput) . |
void |
setGroupOwner(boolean isGroupOwner) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput . |
getTopologyId, setTopologyId
getFlagsBitSet, hasSameFlags, printFlags, setFlagsBitSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
init
canBlock, invoke, invokeAsync, isSuccessful, setOrigin
addFlag, addFlags, addFlags, getFlags, hasAllFlags, hasAnyFlag, hasFlag, setFlags
public static final byte COMMAND_ID
public GetKeysInGroupCommand(long flagsBitSet, Object groupName)
public GetKeysInGroupCommand()
public byte getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.writeTo
in interface ReplicableCommand
output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.writeTo(ObjectOutput)
.readFrom
in interface ReplicableCommand
input
- the stream to read.IOException
- if an error occurred during the I/O.ClassNotFoundException
- if it tries to load an undefined class.public boolean isReturnValueExpected()
ReplicableCommand
ResponseGenerator
may choose to simply return null to save on marshalling
costs.isReturnValueExpected
in interface ReplicableCommand
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
acceptVisitor
in interface VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic VisitableCommand.LoadType loadType()
loadType
in interface VisitableCommand
public Object getGroupName()
public boolean isGroupOwner()
public void setGroupOwner(boolean isGroupOwner)
Copyright © 2021 JBoss by Red Hat. All rights reserved.