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 VisitableCommands, and hence the
importance of this interface.
The Visitor interface is capable of visiting VisitableCommands, and a useful abstract implementation
of Visitor is org.infinispan.interceptors.base.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 CommandsFactory 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.GlobalRpcCommand Commands correspond to specific areas of functionality in the cluster, and can be replicated using theGlobalInboundInvocationHandler.InitializableCommand Deprecated. since 11.0, please implementReplicableCommand#invokeAsync(ComponentRegistry)insteadLocalCommand 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 acceptVisitors, 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.CommandInvocationId Represents an unique identified for non-transaction write commands.CommandsFactoryImpl CorePackageImpl RemoteCommandsFactory Specifically used to create un-initializedReplicableCommands from a byte stream. -
Enum Summary Enum Description VisitableCommand.LoadType