|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InputPipe
InputPipe defines the interface for receiving messages from a
PipeService.
PipeService
PipeService,
OutputPipe,
Message,
MessageElement,
PipeAdvertisement| Method Summary | |
|---|---|
void |
close()
Close the pipe. |
PipeAdvertisement |
getAdvertisement()
Gets the pipe advertisement |
String |
getName()
Gets the pipe name |
ID |
getPipeID()
Gets the pipe id |
String |
getType()
Gets the pipe type |
Message |
poll(int timeout)
Poll for a message from the pipe. |
Message |
waitForMessage()
Wait (block) for a message to be received. |
| Method Detail |
|---|
Message waitForMessage()
throws InterruptedException
InterruptedException - If another thread interrupted while we
were waiting for a message.
Message poll(int timeout)
throws InterruptedException
timeout - Maximum number of milliseconds to wait (block) for a
message to be received. If zero then wait indefinitely for a message.
InterruptedException - If another thread interrupted while we
were waiting for a message.void close()
String getType()
ID getPipeID()
String getName()
PipeAdvertisement getAdvertisement()
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||