org.infinispan.commands.write
Class EvictCommand

java.lang.Object
  extended by org.infinispan.commands.AbstractFlagAffectedCommand
      extended by org.infinispan.commands.read.AbstractDataCommand
          extended by org.infinispan.commands.write.AbstractDataWriteCommand
              extended by org.infinispan.commands.write.RemoveCommand
                  extended by org.infinispan.commands.write.EvictCommand
All Implemented Interfaces:
DataCommand, FlagAffectedCommand, LocalCommand, ReplicableCommand, VisitableCommand, DataWriteCommand, WriteCommand

public class EvictCommand
extends RemoveCommand
implements LocalCommand

Since:
4.0
Author:
Mircea.Markus@jboss.com

Field Summary
 
Fields inherited from class org.infinispan.commands.write.RemoveCommand
COMMAND_ID, notifier, value
 
Fields inherited from class org.infinispan.commands.read.AbstractDataCommand
key
 
Fields inherited from class org.infinispan.commands.AbstractFlagAffectedCommand
flags
 
Constructor Summary
EvictCommand(Object key, CacheNotifier notifier)
           
 
Method Summary
 Object acceptVisitor(InvocationContext ctx, Visitor visitor)
          Accept a visitor, and return the result of accepting this visitor.
 byte getCommandId()
          Used by marshallers to convert this command into an id for streaming.
 void initialize(CacheNotifier notifier)
           
 void notify(InvocationContext ctx, Object value, boolean isPre)
           
 Object perform(InvocationContext ctx)
          Performs the primary function of the command.
 String toString()
           
 
Methods inherited from class org.infinispan.commands.write.RemoveCommand
equals, getParameters, hashCode, ignoreCommandOnStatus, init, isConditional, isNonExistent, isSuccessful, setParameters
 
Methods inherited from class org.infinispan.commands.write.AbstractDataWriteCommand
getAffectedKeys, isReturnValueExpected
 
Methods inherited from class org.infinispan.commands.read.AbstractDataCommand
getKey, setKey, shouldInvoke
 
Methods inherited from class org.infinispan.commands.AbstractFlagAffectedCommand
getFlags, hasFlag, setFlags
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.commands.FlagAffectedCommand
getFlags, hasFlag, setFlags
 
Methods inherited from interface org.infinispan.commands.DataCommand
getKey
 
Methods inherited from interface org.infinispan.commands.VisitableCommand
shouldInvoke
 

Constructor Detail

EvictCommand

public EvictCommand(Object key,
                    CacheNotifier notifier)
Method Detail

initialize

public void initialize(CacheNotifier notifier)

acceptVisitor

public Object acceptVisitor(InvocationContext ctx,
                            Visitor visitor)
                     throws Throwable
Description copied from interface: VisitableCommand
Accept a visitor, and return the result of accepting this visitor.

Specified by:
acceptVisitor in interface VisitableCommand
Overrides:
acceptVisitor in class RemoveCommand
Parameters:
ctx - invocation context
visitor - visitor to accept
Returns:
arbitrary return value
Throws:
Throwable - in the event of problems

perform

public Object perform(InvocationContext ctx)
               throws Throwable
Description copied from interface: ReplicableCommand
Performs the primary function of the command. Please see specific implementation classes for details on what is performed as well as return types. Important: this method will be invoked at the end of interceptors chain. It should never be called directly from a custom interceptor.

Specified by:
perform in interface ReplicableCommand
Overrides:
perform in class RemoveCommand
Parameters:
ctx - invocation context
Returns:
arbitrary return value generated by performing this command
Throws:
Throwable - in the event of problems.

notify

public void notify(InvocationContext ctx,
                   Object value,
                   boolean isPre)
Overrides:
notify in class RemoveCommand

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 RemoveCommand
Returns:
the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.

toString

public String toString()
Overrides:
toString in class RemoveCommand

-->

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