com.ibm.broker.config.proxy
Class LocalCMPReceiver
- java.lang.Object
-
- com.ibm.broker.config.proxy.LocalCMPReceiver
-
public class LocalCMPReceiver extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description LocalCMPReceiver(java.lang.String brokerName, int sessionID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidassociateSender(com.ibm.broker.config.proxy.Sender senderObject)Associates an Sender object with this Receiver.voiddeliverMessage(byte[] messageToDeliver)voidderegisterReceiverListener(com.ibm.broker.config.proxy.ReceiverListener r)Tells the Receiver to stop notifying the supplied object about all incoming messages from the broker.voidregisterReceiverListener(com.ibm.broker.config.proxy.ReceiverListener r)Tells the Receiver to notify the supplied object about all incoming messages from the broker.voidrun()
-
-
-
Constructor Detail
-
LocalCMPReceiver
public LocalCMPReceiver(java.lang.String brokerName, int sessionID)
-
-
Method Detail
-
run
public void run()
-
deliverMessage
public void deliverMessage(byte[] messageToDeliver)
-
registerReceiverListener
public void registerReceiverListener(com.ibm.broker.config.proxy.ReceiverListener r)
Tells the Receiver to notify the supplied object about all incoming messages from the broker.- Parameters:
r- The object that should be notified when a message arrives.
-
deregisterReceiverListener
public void deregisterReceiverListener(com.ibm.broker.config.proxy.ReceiverListener r)
Tells the Receiver to stop notifying the supplied object about all incoming messages from the broker. If, after this call, there are no remaining listeners for this receiver, the Receiver thread should close down.- Parameters:
r- The object that was previously registered, that should no longer be notified when a message arrives.
-
associateSender
public void associateSender(com.ibm.broker.config.proxy.Sender senderObject)
Associates an Sender object with this Receiver. The Receiver will disconnect the sender if it detects that the queue manager has gone down.
-
-