Package org.jgroups.blocks
Provides building blocks that are layered on top of channels.
Most of them do not even need a channel, all they need is a class
that implements interface Transport (channels do).
This enables them to work on any type of group transport that obeys this interface.
Building blocks can be used instead of channels whenever a higher-level interface
is required. Whereas channels are simple socket-like constructs, building blocks
may offer a far more sophisticated interface. In some cases, building blocks offer
access to the underlying channel, so that - if the building block at hand does not
offer a certain functionality - the channel can be accessed directly.
-
Interface Summary Interface Description Cache.ChangeListener LazyRemovalCache.Printable<K,V> MethodInvoker Can be used byRpcDispatcher
/MethodCall
to invoke a method against a given target objectMethodLookup ReplCache.ChangeListener ReplCache.HashFunction<K> ReplCache.HashFunctionFactory<K> ReplicatedHashMap.Notification<K,V> ReplicatedMap<K,V> ReplicatedTree.ReplicatedTreeListener RequestHandler Response A handback object shipped as a parameter toRequestHandler.handle(Message,Response)
.RspFilter Interface defining when a group request is done. -
Class Summary Class Description Cache<K,V> Simple cache which maintains keys and value.Cache.Value<V> GridFile Subclass of File to iterate through directories and files in a gridGridFile.Metadata GridFilesystem Entry point for GridFile and GridInputStream / GridOutputStreamGridInputStream GridOutputStream GroupRequest<T> Sends a message to all members of the group and waits for all responses (or timeout).LazyRemovalCache<K,V> Cache which doesn't remove elements on remove(), removeAll() or retainAll(), but only removes elements when a configurable size limit has been exceeded.LazyRemovalCache.Entry<V> MessageDispatcher Provides synchronous and asynchronous message sending with request-response correlation; i.e., matching responses with the original request.MethodCall A method call is the JGroups representation of a remote method.ReplCache<K,V> Cache which allows for replication factors per data items; the factor determines how many replicas of a key/value we create across the cluster.
See doc/design/ReplCache.txt for details.ReplCache.ConsistentHashFunction<K> ReplCache.Value<V> ReplicatedHashMap<K,V> Implementation of aConcurrentMap
with replication of the contents across a cluster.ReplicatedTree A tree-like structure that is replicated across several members.ReplicatedTree.Node Request<T> Abstract class for a unicast or multicast requestRequestCorrelator Framework to send requests and receive matching responses (on request ID).RequestCorrelator.Header The header for RequestCorrelator messagesRequestCorrelator.MultiDestinationHeader RequestOptions Class which captures a bunch of options relevant to remote method invocation or message sendingRpcDispatcher This class allows a programmer to invoke remote methods in all (or single) group members and optionally wait for the return value(s).UnicastRequest<T> Sends a request to a single target destination -
Enum Summary Enum Description ResponseMode Enum capturing the various response modes for RPCs