org.infinispan.commands
Interface FlagAffectedCommand
- All Known Subinterfaces:
- DataWriteCommand, WriteCommand
- All Known Implementing Classes:
- AbstractDataCommand, AbstractDataWriteCommand, ClearCommand, ClusteredGetCommand, EvictCommand, GetKeyValueCommand, InvalidateCommand, InvalidateL1Command, LockControlCommand, PutKeyValueCommand, PutMapCommand, RemoveCommand, ReplaceCommand
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()
|
void |
setFlags(Set<Flag> flags)
Use it to store the flags from the InvocationContext into the Command before remoting the Command. |
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
-
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.