org.jboss.cache.commands
Interface VisitableCommand

All Superinterfaces:
ReplicableCommand
All Known Subinterfaces:
DataCommand, ReversibleCommand, VersionedDataCommand, WriteCommand
All Known Implementing Classes:
AbstractDataCommand, AbstractTransactionCommand, AbstractVersionedDataCommand, ClearDataCommand, CommitCommand, CreateNodeCommand, EvictCommand, ExistsCommand, GetChildrenNamesCommand, GetDataMapCommand, GetKeysCommand, GetKeyValueCommand, GetNodeCommand, GravitateDataCommand, InvalidateCommand, LegacyEvictCommand, LegacyGravitateDataCommand, MoveCommand, OptimisticPrepareCommand, PessClearDataCommand, PessGetChildrenNamesCommand, PessMoveCommand, PessPutDataMapCommand, PessPutForExternalReadCommand, PessPutKeyValueCommand, PessRemoveKeyCommand, PessRemoveNodeCommand, PrepareCommand, PutDataMapCommand, PutForExternalReadCommand, PutKeyValueCommand, RemoveKeyCommand, RemoveNodeCommand, RollbackCommand, VersionedInvalidateCommand

public interface VisitableCommand
extends ReplicableCommand

A type of command that can accept Visitors, such as CommandInterceptors.

Since:
2.2.0
Author:
Manik Surtani (manik AT jboss DOT org)

Method Summary
 Object acceptVisitor(InvocationContext ctx, Visitor visitor)
          Accept a visitor, and return the result of accepting this visitor.
 
Methods inherited from interface org.jboss.cache.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Method Detail

acceptVisitor

Object acceptVisitor(InvocationContext ctx,
                     Visitor visitor)
                     throws Throwable
Accept a visitor, and return the result of accepting this visitor.

Parameters:
ctx - invocation context
visitor - visitor to accept
Returns:
arbitrary return value
Throws:
Throwable - in the event of problems


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