Package org.jgroups.blocks
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.
-
ClassDescriptionCache<K,
V> Simple cache which maintains keys and value.Cache.Value<V>Subclass of File to iterate through directories and files in a gridEntry point for GridFile and GridInputStream / GridOutputStreamGroupRequest<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.Provides synchronous and asynchronous message sending with request-response correlation; i.e., matching responses with the original request.A method call is the JGroups representation of a remote method.Can be used byRpcDispatcher/MethodCallto invoke a method against a given target objectReplCache<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.ReplicatedHashMap<K,V> Implementation of aConcurrentMapwith replication of the contents across a cluster.ReplicatedMap<K,V> A tree-like structure that is replicated across several members.Class used to multicast add(), remove() and set() methods to all members.Request<T>Abstract class for a unicast or multicast requestFramework to send requests and receive matching responses (on request ID).Class which captures a bunch of options relevant to remote method invocation or message sendingA handback object shipped as a parameter toRequestHandler.handle(Message,Response).Enum capturing the various response modes for RPCsThis class allows a programmer to invoke remote methods in all (or single) group members and optionally wait for the return value(s).Interface defining when a group request is done.Sends a request to a single target destination