Rice Pastry API

rice.p2p.commonapi
Interface DeliveryNotification


public interface DeliveryNotification

Notified when the message is sent/failed. Implemented by the user, can be included as a parameter in endpont.route()

Author:
Jeff Hoye

Method Summary
 void sendFailed(MessageReceipt msg, java.lang.Exception reason)
          Notification that the message can't be sent.
 void sent(MessageReceipt msg)
          Layer specific callback.
 

Method Detail

sent

void sent(MessageReceipt msg)
Layer specific callback.

Parameters:
msg - the message that is being acknowledged.

sendFailed

void sendFailed(MessageReceipt msg,
                java.lang.Exception reason)
Notification that the message can't be sent.

Parameters:
msg - the message that can't be sent.
reason - the reason it can't be sent (layer specific)

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection