Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.commands
Class AbstractFlagAffectedCommand

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

public abstract class AbstractFlagAffectedCommand
extends Object
implements FlagAffectedCommand, TopologyAffectedCommand

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()
           
 int getTopologyId()
           
 boolean hasFlag(Flag flag)
          Check whether a particular flag is present in the command
 void setFlags(Flag... flags)
          Use it to store the flags from the InvocationContext into the Command before remoting the Command.
 void setFlags(Set<Flag> flags)
          Use it to store the flags from the InvocationContext into the Command before remoting the Command.
 void setTopologyId(int topologyId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.commands.VisitableCommand
acceptVisitor, ignoreCommandOnStatus, shouldInvoke
 
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, getParameters, isReturnValueExpected, perform, setParameters
 

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

setFlags

public void setFlags(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

getTopologyId

public int getTopologyId()
Specified by:
getTopologyId in interface TopologyAffectedCommand

setTopologyId

public void setTopologyId(int topologyId)
Specified by:
setTopologyId in interface TopologyAffectedCommand

Infinispan Distribution 5.2.6.Final-redhat-2

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