net.tomp2p.natpmp
Interface MessageResponseInterface


public interface MessageResponseInterface

This interface defines methods that are used for message responses. This interface is implemented by objects that listen for message responses.

Author:
flszen

Method Summary
 void exceptionGenerated(Message message, NatPmpException ex)
          An exception was generated during the message sending process.
 void noResponseReceived(Message message)
          No response was received.
 void responseReceived(Message message)
          A response was received.
 

Method Detail

responseReceived

void responseReceived(Message message)
A response was received.

Parameters:
message - The Message that this notification pertains to.

noResponseReceived

void noResponseReceived(Message message)
No response was received.

Parameters:
message - The Message that this notification pertains to.

exceptionGenerated

void exceptionGenerated(Message message,
                        NatPmpException ex)
An exception was generated during the message sending process.

Parameters:
message - The Message that this notification pertains to.
ex - The NatPmpException that was generated.


Copyright © 2013. All Rights Reserved.