Package org.infinispan.commands
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 VisitableCommand
s, and hence the
importance of this interface.
The Visitor
interface is capable of visiting VisitableCommand
s, 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.- Since:
- 4.0
- Author:
- Manik Surtani
-
Interface Summary Interface Description CancellableCommand CancellableCommand is a command whose execution in remote VM can be canceled (if needed)CancellationService CancellationService manages association of Thread executing CancellableCommand in a remote VM and if needed cancels command executionCommandsFactory A factory to build commands, initializing and injecting dependencies accordingly.DataCommand Commands of this type manipulate data in the cache.FlagAffectedCommand Flags modify behavior of command such as whether or not to invoke certain commands remotely, check cache store etc.LocalCommand This is a marker interface to indicate that such commands will never be replicated and hence will not return any valid command IDs.MetadataAwareCommand A command that contains metadata information.ReplicableCommand The core of the command-based cache framework.SegmentSpecificCommand Interface to be implemented when the command can define a single segment for its operation.TopologyAffectedCommand Some of the commands sent over the wire can only be honored by the receiver if the topology of the cluster at delivery time is still 'compatible' with the topology in place at send time (eg.VisitableCommand A type of command that can acceptVisitor
s, such asDDAsyncInterceptor
.Visitor -
Class Summary Class Description AbstractFlagAffectedCommand Base class for those commands that can carry flags.AbstractTopologyAffectedCommand Base class for commands that carry topology id.AbstractVisitor An abstract implementation of a Visitor that delegates all visit calls to a default handler which can be overridden.CancelCommand Command to cancel commands executing in remote VMCancellationServiceImpl CancellationServiceImpl is a default implementation ofCancellationService
CommandInvocationId Represents an unique identified for non-transaction write commands.CommandsFactoryImpl CreateCacheCommand Command to create/start a cache on a subset of Infinispan cluster nodesRemoteCommandsFactory Specifically used to create un-initializedReplicableCommand
s from a byte stream.RemoveCacheCommand Deprecated. UseCacheContainerAdmin.removeCache(String)
instead -
Enum Summary Enum Description VisitableCommand.LoadType