org.infinispan.commands.write
Class InvalidateL1Command

java.lang.Object
  extended by org.infinispan.commands.read.AbstractDataCommand
      extended by org.infinispan.commands.write.RemoveCommand
          extended by org.infinispan.commands.write.InvalidateCommand
              extended by 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

Field Summary
static int COMMAND_ID
           
 
Fields inherited from class org.infinispan.commands.write.RemoveCommand
notifier, value
 
Fields inherited from class org.infinispan.commands.read.AbstractDataCommand
key
 
Constructor Summary
InvalidateL1Command()
           
InvalidateL1Command(DistributionManager dm, CacheNotifier notifier, Object... keys)
           
 
Method Summary
 byte getCommandId()
          Used by marshallers to convert this command into an id for streaming.
 void init(DistributionManager dm, CacheNotifier n)
           
 Object perform(InvocationContext ctx)
          Performs an invalidation on a specified entry
 String toString()
           
 
Methods inherited from class org.infinispan.commands.write.InvalidateCommand
acceptVisitor, getKey, getKeys, getParameters, invalidate, notify, setParameters
 
Methods inherited from class org.infinispan.commands.write.RemoveCommand
equals, hashCode, init, isConditional, isSuccessful
 
Methods inherited from class org.infinispan.commands.read.AbstractDataCommand
lookupMvccEntry, setKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMAND_ID

public static final int COMMAND_ID
See Also:
Constant Field Values
Constructor Detail

InvalidateL1Command

public InvalidateL1Command()

InvalidateL1Command

public InvalidateL1Command(DistributionManager dm,
                           CacheNotifier notifier,
                           Object... keys)
Method Detail

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(DistributionManager dm,
                 CacheNotifier n)

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.

toString

public String toString()
Overrides:
toString in class InvalidateCommand


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