org.infinispan.commands
Interface FlagAffectedCommand

All Known Subinterfaces:
DataWriteCommand, WriteCommand
All Known Implementing Classes:
AbstractDataCommand, AbstractDataWriteCommand, AbstractFlagAffectedCommand, ApplyDeltaCommand, ClearCommand, ClusteredGetCommand, EvictCommand, GetKeyValueCommand, InvalidateCommand, InvalidateL1Command, LockControlCommand, PutKeyValueCommand, PutMapCommand, RemoveCommand, ReplaceCommand, VersionedPutKeyValueCommand

public interface FlagAffectedCommand

Commands affected by Flags should carry them over to the remote nodes. By implementing this interface the remote handler will read them out and restore in context; flags should still be evaluated in the InvocationContext.

Since:
5.0
Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

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.
 

Method Detail

getFlags

Set<Flag> getFlags()
Returns:
the Flags which where set in the context - only valid to invoke after setFlags(Set)

setFlags

void setFlags(Set<Flag> flags)
Use it to store the flags from the InvocationContext into the Command before remoting the Command.

Parameters:
flags -

hasFlag

boolean hasFlag(Flag flag)
Check whether a particular flag is present in the command

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.