org.infinispan.commands
Class AbstractFlagAffectedCommand

java.lang.Object
  extended by org.infinispan.commands.AbstractFlagAffectedCommand
All Implemented Interfaces:
FlagAffectedCommand
Direct Known Subclasses:
AbstractDataCommand, ClearCommand, PutMapCommand

public abstract class AbstractFlagAffectedCommand
extends Object
implements FlagAffectedCommand

Base class for those commands that can carry flags.

Since:
5.1
Author:
Galder ZamarreƱo

Field Summary
protected  Set<Flag> flags
           
 
Constructor Summary
AbstractFlagAffectedCommand()
           
 
Method Summary
 Set<Flag> getFlags()
           
 boolean hasFlag(Flag flag)
          Check whether a particular flag is present in the command
 void setFlags(Set<Flag> flags)
          Use it to store the flags from the InvocationContext into the Command before remoting the Command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flags

protected Set<Flag> flags
Constructor Detail

AbstractFlagAffectedCommand

public AbstractFlagAffectedCommand()
Method Detail

getFlags

public Set<Flag> getFlags()
Specified by:
getFlags in interface FlagAffectedCommand
Returns:
the Flags which where set in the context - only valid to invoke after FlagAffectedCommand.setFlags(Set)

setFlags

public void setFlags(Set<Flag> flags)
Description copied from interface: FlagAffectedCommand
Use it to store the flags from the InvocationContext into the Command before remoting the Command.

Specified by:
setFlags in interface FlagAffectedCommand

hasFlag

public boolean hasFlag(Flag flag)
Description copied from interface: FlagAffectedCommand
Check whether a particular flag is present in the command

Specified by:
hasFlag in interface FlagAffectedCommand
Parameters:
flag - to lookup in the command
Returns:
true if the flag is present

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.