All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.PullPushAdapter

java.lang.Object
   |
   +----JavaGroups.PullPushAdapter

public class PullPushAdapter
extends Object
implements Runnable
Allows a client of Channel to be notified when messages have been received instead of having to actively poll the channel for new messages. Typically used in the client role (Receive()). As this class does not implement interface 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).


Constructor Index

 o PullPushAdapter(Transport)
 o PullPushAdapter(Transport, MembershipListener)
 o PullPushAdapter(Transport, MessageListener)
 o PullPushAdapter(Transport, MessageListener, MembershipListener)

Method Index

 o run()
Reentrant run(): message reception is serialized, then the listener is notified of the message reception
 o SetListener(MessageListener)
 o SetMembershipListener(MembershipListener)
 o Start()
 o Stop()

Constructors

 o PullPushAdapter
 public PullPushAdapter(Transport transport)
 o PullPushAdapter
 public PullPushAdapter(Transport channel,
                        MessageListener l)
 o PullPushAdapter
 public PullPushAdapter(Transport channel,
                        MembershipListener ml)
 o PullPushAdapter
 public PullPushAdapter(Transport channel,
                        MessageListener l,
                        MembershipListener ml)

Methods

 o Start
 public void Start()
 o Stop
 public void Stop()
 o SetListener
 public void SetListener(MessageListener l)
 o SetMembershipListener
 public void SetMembershipListener(MembershipListener ml)
 o run
 public void run()
Reentrant run(): message reception is serialized, then the listener is notified of the message reception


All Packages  Class Hierarchy  This Package  Previous  Next  Index