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


Copyright © 2010. All Rights Reserved.