## Uses of Interface
org.jgroups.MembershipListener

Packages that use MembershipListener
Package | Description
--- | ---
org.jgroups | Provides top-level public JGroups classes such as Channel, Message, etc.
org.jgroups.blocks | Provides building blocks that are layered on top of channels.
org.jgroups.blocks.mux |
org.jgroups.demos | Provides demonstrations of JGroups functionality.
org.jgroups.demos.wb | A distributed whiteboard applet implemented using JGroups.
org.jgroups.protocols | Provides implementations of transport protocols which are responsible for sending and receiving messages to/from the network.
org.jgroups.util | Provides useful functionality which cannot be assigned to any particular other package.

### Uses of MembershipListener in org.jgroups

Subinterfaces of MembershipListener in org.jgroups
Modifier and Type | Interface and Description
--- | ---
`interface` | `ExtendedMembershipListener`
`interface` | `ExtendedReceiver` Extends Receiver, plus the partial state transfer methods.
`interface` | `Receiver` Defines the callbacks that are invoked when messages, views etc are received on a channel

Classes in org.jgroups that implement MembershipListener
Modifier and Type | Class and Description
--- | ---
`class` | `ExtendedReceiverAdapter`
`class` | `ReceiverAdapter`

### Uses of MembershipListener in org.jgroups.blocks

Classes in org.jgroups.blocks that implement MembershipListener
Modifier and Type | Class and Description
--- | ---
`class` | `DistributedLockManager` Deprecated. Succeessor is `LockService`.
`class` | `DistributedQueue` Provides the abstraction of a java.util.LinkedList that is replicated at several locations.
`class` | `DistributedTree` A tree-like structure that is replicated across several members.
`class` | `MembershipListenerAdapter` This class provides multiplexing possibilities for `MembershipListener` instances.
`class` | `NotificationBus` Deprecated. Will be pulled in 3.0, use a JChannel directly instead
`class` | `PartitionedHashMap<K,V>` Hashmap which distributes its keys and values across the cluster.
`static class` | `PartitionedHashMap.ArrayBasedConsistentHashFunction<K>` Uses arrays to store hash values of addresses, plus addresses.
`static class` | `PartitionedHashMap.ConsistentHashFunction<K>`
`class` | `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.
`class` | `ReplicatedHashMap<K extends Serializable,V extends Serializable>` Subclass of a `ConcurrentHashMap` with replication of the contents across a cluster.
`class` | `ReplicatedTree` A tree-like structure that is replicated across several members.
`class` | `VotingAdapter` Voting adapter provides a voting functionality for an application.

Fields in org.jgroups.blocks declared as MembershipListener
Modifier and Type | Field and Description
--- | ---
`protected MembershipListener` | MessageDispatcher.`membership_listener`
`protected MembershipListener[]` | MembershipListenerAdapter.`membershipListenersCache`

Methods in org.jgroups.blocks with parameters of type MembershipListener
Modifier and Type | Method and Description
--- | ---
`void` | PartitionedHashMap.`addMembershipListener(MembershipListener l)`
`void` | MembershipListenerAdapter.`addMembershipListener(MembershipListener listener)` Add membership listener to this adapter.
`void` | ReplCache.`addMembershipListener(MembershipListener l)`
`void` | PullPushAdapter.`addMembershipListener(MembershipListener l)` Deprecated.
`void` | VotingAdapter.`addMembershipListener(MembershipListener l)`
`void` | PartitionedHashMap.`removeMembershipListener(MembershipListener l)`
`void` | MembershipListenerAdapter.`removeMembershipListener(MembershipListener listener)` Remove membership listener from this adapter.
`void` | ReplCache.`removeMembershipListener(MembershipListener l)`
`void` | PullPushAdapter.`removeMembershipListener(MembershipListener l)` Deprecated.
`void` | VotingAdapter.`removeMembershipListener(MembershipListener l)`
`void` | PullPushAdapter.`setMembershipListener(MembershipListener ml)` Deprecated. Use `PullPushAdapter.addMembershipListener(org.jgroups.MembershipListener)`
`void` | MessageDispatcher.`setMembershipListener(MembershipListener l)`

Constructors in org.jgroups.blocks with parameters of type MembershipListener
Constructor and Description
`MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2)`
`MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, boolean deadlock_detection)` Deprecated.
`MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, boolean deadlock_detection, boolean concurrent_processing)` Deprecated.
`MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, RequestHandler req_handler)`
`MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, RequestHandler req_handler, boolean deadlock_detection)` Deprecated.
`MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, RequestHandler req_handler, boolean deadlock_detection, boolean concurrent_processing)` Deprecated.
`MessageDispatcher(PullPushAdapter adapter, java.io.Serializable id, MessageListener l, MembershipListener l2)` Deprecated.
`MessageDispatcher(PullPushAdapter adapter, java.io.Serializable id, MessageListener l, MembershipListener l2, RequestHandler req_handler)` Deprecated.
`MessageDispatcher(PullPushAdapter adapter, java.io.Serializable id, MessageListener l, MembershipListener l2, RequestHandler req_handler, boolean concurrent_processing)` Deprecated.
`PullPushAdapter(Transport transport, MembershipListener ml)` Deprecated.
`PullPushAdapter(Transport transport, MessageListener l, MembershipListener ml)` Deprecated.
`PullPushAdapter(Transport transport, MessageListener l, MembershipListener ml, boolean start)` Deprecated.
`RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, java.lang.Object server_obj)`
`RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, java.lang.Object server_obj, boolean deadlock_detection)` Deprecated.
`RpcDispatcher(Channel channel, MessageListener l, MembershipListener l2, java.lang.Object server_obj, boolean deadlock_detection, boolean concurrent_processing)` Deprecated.
`RpcDispatcher(PullPushAdapter adapter, java.io.Serializable id, MessageListener l, MembershipListener l2, java.lang.Object server_obj)` Deprecated.

### Uses of MembershipListener in org.jgroups.blocks.mux

Constructors in org.jgroups.blocks.mux with parameters of type MembershipListener
Constructor and Description
`MuxMessageDispatcher(short scopeId, Channel channel, MessageListener messageListener, MembershipListener membershipListener, RequestHandler handler)`
`MuxRpcDispatcher(short scopeId, Channel channel, MessageListener messageListener, MembershipListener membershipListener, java.lang.Object serverObject)`

### Uses of MembershipListener in org.jgroups.demos

Classes in org.jgroups.demos that implement MembershipListener
Modifier and Type | Class and Description
--- | ---
`class` | `Draw` Shared whiteboard, each new instance joins the same group.
`class` | `QuoteClient` Used in conjunction with QuoteServer: a client is member of a group of quote servers which replicate stock quotes among themselves.
`class` | `QuoteServer` Example of a replicated quote server.
`class` | `RelayDemoRpc` Demos RELAY.
`class` | `Topology` Demonstrates the membership service.
`class` | `ViewDemo` Demos the reception of views using a PullPushAdapter.

### Uses of MembershipListener in org.jgroups.demos.wb

Classes in org.jgroups.demos.wb that implement MembershipListener
Modifier and Type | Class and Description
--- | ---
`class` | `Whiteboard` Shared whiteboard: members are represented by rectangles that contain their names and the OS/arch of the machine they are working on.

### Uses of MembershipListener in org.jgroups.protocols

Classes in org.jgroups.protocols that implement MembershipListener
Modifier and Type | Class and Description
--- | ---
`protected class` | `RELAY.Receiver`

### Uses of MembershipListener in org.jgroups.util

Classes in org.jgroups.util that implement MembershipListener
Modifier and Type | Class and Description
--- | ---
`class` | `MyReceiver` Simple receiver which buffers all messages