org.infinispan.commands.write
Class InvalidateL1Command
java.lang.Object
org.infinispan.commands.read.AbstractDataCommand
org.infinispan.commands.write.AbstractDataWriteCommand
org.infinispan.commands.write.RemoveCommand
org.infinispan.commands.write.InvalidateCommand
org.infinispan.commands.write.InvalidateL1Command
- All Implemented Interfaces:
- DataCommand, ReplicableCommand, VisitableCommand, DataWriteCommand, WriteCommand
public class InvalidateL1Command
- extends InvalidateCommand
Invalidates an entry in a L1 cache (used with DIST mode)
- Since:
- 4.0
- Author:
- Manik Surtani
COMMAND_ID
public static final int COMMAND_ID
- See Also:
- Constant Field Values
InvalidateL1Command
public InvalidateL1Command()
InvalidateL1Command
public InvalidateL1Command(boolean forRehash,
DataContainer dc,
Configuration config,
DistributionManager dm,
CacheNotifier notifier,
Object... keys)
getCommandId
public byte getCommandId()
- Description copied from interface:
ReplicableCommand
- Used by marshallers to convert this command into an id for streaming.
- Specified by:
getCommandId
in interface ReplicableCommand
- Overrides:
getCommandId
in class InvalidateCommand
- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
init
public void init(Configuration config,
DistributionManager dm,
CacheNotifier n,
DataContainer dc)
perform
public Object perform(InvocationContext ctx)
throws Throwable
- Description copied from class:
InvalidateCommand
- Performs an invalidation on a specified entry
- Specified by:
perform
in interface ReplicableCommand
- Overrides:
perform
in class InvalidateCommand
- Parameters:
ctx
- invocation context
- Returns:
- null
- Throws:
Throwable
- in the event of problems.
equals
public boolean equals(Object o)
- Overrides:
equals
in class InvalidateCommand
getParameters
public Object[] getParameters()
- Description copied from interface:
ReplicableCommand
- Used by marshallers to stream this command across a network
- Specified by:
getParameters
in interface ReplicableCommand
- Overrides:
getParameters
in class InvalidateCommand
- Returns:
- an object array of arguments, compatible with pre-2.2.0 MethodCall args.
setParameters
public void setParameters(int commandId,
Object[] args)
- Description copied from interface:
ReplicableCommand
- Used by the
CommandsFactory
to create a command from raw data read off a stream.
- Specified by:
setParameters
in interface ReplicableCommand
- Overrides:
setParameters
in class InvalidateCommand
- Parameters:
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having
multiple IDs, such as PutKeyValueCommand
.args
- object array of args
hashCode
public int hashCode()
- Overrides:
hashCode
in class InvalidateCommand
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.