Rice Pastry API

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.lang.Exception 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.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