Allows a client of {@link org.jgroups.Channel} to be notified when messages have been receivedinstead of having to actively poll the channel for new messages. Typically used in the client role (receive()). As this class does not implement interface {@link org.jgroups.Transport}, but
uses it for receiving messages, an underlying object has to be used to send messages (e.g. the channel on which an object of this class relies).
Multiple MembershipListeners can register with the PullPushAdapter; when a view is received, they will all be notified. There is one main message listener which sends and receives message. In addition, MessageListeners can register with a certain tag (identifier), and then send messages tagged with this identifier. When a message with such an identifier is received, the corresponding MessageListener will be looked up and the message dispatched to it. If no tag is found (default), the main MessageListener will receive the message.
@author Bela Ban
@version $Revision
@deprecated Use {@link org.jgroups.Receiver} instead, this class will be removed in JGroups 3.0