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.
-
ClassDescriptionShared class for TCP connection tables.Used to be notified about connection establishment and teardown.Used for message reception.Manages incoming and outgoing TCP connections.Manages incoming and outgoing TCP connections.Deprecated.Distributed lock manager is responsible for maintaining the lock information consistent on all participating nodes.This class represents the lock to be released.This class represents the lockThis class represents the lock that has to be marked as multilockedThis class represents the lock to be released.Provides the abstraction of a java.util.LinkedList that is replicated at several locations.A tree-like structure that is replicated across several members.Sends a message to all members of the group and waits for all responses (or timeout).
LockManager
represents generic lock manager that allows obtaining and releasing locks on objects.Thrown by theDistributedLockManager.unlock(Object, Object, boolean)
method if a lock is only locally released, because it is locked by multiple DistributedLockManagers.This exception indicated that lock manager refused to give a lock on some resource.This exception indicated that lock manager refused to release a lock on some resource.This class provides multiplexing possibilities forMembershipListener
instances.Provides synchronous and asynchronous message sending with request-response correlation; i.e., matching responses with the original request.This class provides multiplexing possibilities forMessageListener
instances.A method call is the JGroups representation of a remote method.NBMessageForm - Message form for non-blocking message reads.This class provides notification sending and handling capability.Deprecated.UseReceiver
instead, this class will be removed in JGroups 3.0Subclass of aConcurrentHashMap
with replication of the contents across a cluster.Deprecated.UseReplicatedHashMap
insteadA tree-like structure that is replicated across several members.Framework to send requests and receive matching responses (matching on request ID).The header for RequestCorrelator messagesThis class allows a programmer to invoke remote methods in all (or single) group members and optionally wait for the return value(s).Used to provide a Marshaller2 interface to a Marshaller.Interface defining when a group request is done.This adapter introduces simple two-phase voting on a specified decree.Wrapper of the decree to voting decree.Implementations of this interface can participate in two-phase voting process.This exception is thrown when voting listener cannot vote on the specified decree.VoteResultProcessor Applications that use the VotingAdapter and/or TwoPhaseVotingAdapter can pass an implementation of this down the vote calls, to intercept processing of the VoteResults returned by other nodes.Voting adapter provides a voting functionality for an application.Class that represents a result of local voting on the failed node.This class represents the result of local voting.Implemetations of this interface are able to participate in voting process.
ReplicatedHashMap
instead