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

## org.mpisws.p2p.transport
Interface MessageCallback<Identifier,MessageType>

Type Parameters:
  `MessageType` -
  `E` -

All Known Implementing Classes:
  MCAdapter

    public interface MessageCallback<Identifier,MessageType>

The callback when a Message is sent from a transport layer.

Author:
  Jeff Hoye

Method Summary
`void` | `ack(MessageRequestHandle<Identifier,MessageType> msg)` Layer specific callback.
`void` | `sendFailed(MessageRequestHandle<Identifier,MessageType> msg, java.io.IOException reason)` Notification that the message can't be sent.

Method Detail

### ack

    void ack(MessageRequestHandle<Identifier,MessageType> msg)

  Layer specific callback.

  Parameters:
    `msg` - the message that is being acknowledged.

### sendFailed

    void sendFailed(MessageRequestHandle<Identifier,MessageType> msg,
                    java.io.IOException 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.