|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public Message waitForMessage() throws InterruptedException
InterruptedException
- If another thread interrupted while we
were waiting for a message.public 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.public void close()
public String getType()
public ID getPipeID()
public String getName()
public PipeAdvertisement getAdvertisement()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |