com.sun.im.service
Interface MessageStatusListener


public interface MessageStatusListener

A MessageStatusListener is instantiated by the application, passed to the alert method in Session and later used to convey statusses and responses to the sender.


Method Summary
 boolean onReceipt(java.lang.String destination, int deliveryStatus)
          invoked when the message has been disposed of by one of the recipients.
 void onReply(Message message)
          invoked when a reply to a message is received
 

Method Detail

onReceipt

public boolean onReceipt(java.lang.String destination,
                         int deliveryStatus)
invoked when the message has been disposed of by one of the recipients.

Parameters:
destination - message recipient address
deliveryStatus - status code as defined in MessageStatus
Returns:
whether more status receipts are expected. If false is returned This method will no longer be invoked for this recipient.
See Also:
MessageStatus

onReply

public void onReply(Message message)
invoked when a reply to a message is received

Parameters:
message - response