JXTA

net.jxta.impl.util.pipe.reliable
Interface Incoming

All Known Implementing Classes:
ReliableInputStream, ReliableOutputStream

public interface Incoming

Incoming messages are delivered to a class implementing this interface.


Method Summary
 void recv(Message msg)
          Receive this incoming message.
 

Method Detail

recv

void recv(Message msg)
Receive this incoming message. This method should return quickly. If the receiving class needs to do substantial work with incoming messages, it should insert this message into a queue and then drain the queue processing the messages in its own thread.

Parameters:
msg - the message

JXSE