public abstract class LocalFlagAffectedRpcCommand extends BaseRpcCommand implements LocalFlagAffectedCommand
Modifier and Type | Field and Description |
---|---|
protected Set<Flag> |
flags |
cacheName
Modifier | Constructor and Description |
---|---|
protected |
LocalFlagAffectedRpcCommand(String cacheName,
Set<Flag> flags) |
Modifier and Type | Method and Description |
---|---|
Set<Flag> |
getFlags() |
boolean |
hasFlag(Flag flag)
Check whether a particular flag is present in the command
|
void |
setFlags(Set<Flag> flags)
Set the flags, replacing any existing flags.
|
canBlock, getCacheName, getOrigin, setOrigin, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFlag, addFlags, setFlags
getCommandId, getParameters, isReturnValueExpected, perform, readFrom, setParameters, writeTo
public Set<Flag> getFlags()
getFlags
in interface LocalFlagAffectedCommand
LocalFlagAffectedCommand.setFlags(java.util.Set)
. The set should
not be modified directly, only via the LocalFlagAffectedCommand.setFlags(Set)
, LocalFlagAffectedCommand.addFlag(Flag)
and LocalFlagAffectedCommand.addFlags(Set)
methods.public void setFlags(Set<Flag> flags)
LocalFlagAffectedCommand
setFlags
in interface LocalFlagAffectedCommand
flags
- The new flags.public boolean hasFlag(Flag flag)
LocalFlagAffectedCommand
hasFlag
in interface LocalFlagAffectedCommand
flag
- to lookup in the commandCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.