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
CacheAPI methods tend to be
VisitableCommands, and hence the importance of this interface. The
Visitorinterface is capable of visiting
VisitableCommands, and a useful abstract implementation of
CommandInterceptor, which allows you to create interceptors that intercept command invocations adding aspects of behavior to a given invocation.
- Manik Surtani
Interface Summary Interface Description CancellableCommandCancellableCommand is a command whose execution in remote VM can be canceled (if needed) CancellationServiceCancellationService manages association of Thread executing CancellableCommand in a remote VM and if needed cancels command execution CommandsFactoryA factory to build commands, initializing and injecting dependencies accordingly. DataCommandCommands of this type manipulate data in the cache. FlagAffectedCommandFlags modify behavior of command such as whether or not to invoke certain commands remotely, check cache store etc. LocalCommandThis is a marker interface to indicate that such commands will never be replicated and hence will not return any valid command IDs. MetadataAwareCommandA command that contains metadata information. ReplicableCommandThe core of the command-based cache framework. SegmentSpecificCommandInterface to be implemented when the command can define a single segment for its operation. TopologyAffectedCommandSome 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 Visitor
Class Summary Class Description AbstractFlagAffectedCommandBase class for those commands that can carry flags. AbstractTopologyAffectedCommandBase class for commands that carry topology id. AbstractVisitorAn abstract implementation of a Visitor that delegates all visit calls to a default handler which can be overridden. CancelCommandCommand to cancel commands executing in remote VM CancellationServiceImplCancellationServiceImpl is a default implementation of
CommandInvocationIdRepresents an unique identified for non-transaction write commands. CommandsFactoryImpl CreateCacheCommandCommand to create/start a cache on a subset of Infinispan cluster nodes RemoteCommandsFactorySpecifically used to create un-initialized
ReplicableCommands from a byte stream.
Enum Summary Enum Description VisitableCommand.LoadType