org.infinispan.commands.write
Class EvictCommand
java.lang.Object
org.infinispan.commands.AbstractFlagAffectedCommand
org.infinispan.commands.read.AbstractDataCommand
org.infinispan.commands.write.AbstractDataWriteCommand
org.infinispan.commands.write.RemoveCommand
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
EvictCommand
public EvictCommand(Object key,
CacheNotifier notifier)
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 contextvisitor
- 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.