Package org.infinispan.commands

Commands that operate on the cache, either locally or remotely.


Interface Summary
CommandsFactory A factory to build commands, initializing and injecting dependencies accordingly.
DataCommand Commands of this type manipulate data in the cache.
LocalCommand This is a marker interface to indicate that such commands will never be replicated and hence will not return any valid command IDs.
ReplicableCommand The core of the command-based cache framework.
VisitableCommand A type of command that can accept Visitors, such as CommandInterceptors.

Class Summary
AbstractVisitor An abstract implementation of a Visitor that delegates all visit calls to a default handler which can be overridden.
RemoteCommandsFactory Specifically used to create un-initialized ReplicableCommands from a byte stream.

Package org.infinispan.commands Description

Commands that operate on the cache, either locally or remotely. This package contains the entire command object model including interfaces and abstract classes. Your starting point is probably ReplicableCommand, which represents a command that can be used in RPC calls.

A sub-interface, VisitableCommand, represents commands that can be visited using the visitor pattern. Most commands that relate to public Cache API methods tend to be VisitableCommands, and hence the importance of this interface.

The Visitor interface is capable of visiting VisitableCommands, and a useful abstract implementation of Visitor is CommandInterceptor, which allows you to create interceptors that intercept command invocations adding aspects of behavior to a given invocation.

Manik Surtani

Google Analytics

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