Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.