|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
InputPipe defines the interface for receiving messages from a PipeService.
An application that wants to receive messages from a Pipe will create an input pipe.
An InputPipe is created and returned by the PipeService
PipeService,
OutputPipe,
Message,
MessageElement,
PipeAdvertisement,
GenericResolver| Method Summary | |
void |
close()
close the pipe |
Message |
poll(int timeout)
Poll for a message from the pipe. |
Message |
waitForMessage()
wait for a message to be received |
| Method Detail |
public Message waitForMessage()
throws java.lang.InterruptedException
java.lang.InterruptedException - If another thread interrupted while we
were waiting for a message.
public Message poll(int timeout)
throws java.lang.InterruptedException
timeout - minimum time poll is supposed to block (in milliseconds)java.lang.InterruptedException - If another thread interrupted while we
were waiting for a message.public void close()
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||