|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies the methods that must be implemented by a connection in order to be able to reliably deliver messages over the connection.
Method Summary | |
void |
close()
Close the connection. |
long |
getIdleTimeout()
Amount of time after which a connection is considered idle and may be scavenged. |
long |
getLastAccessed()
Get the time when this connection was last used. |
long |
getMaxRetryAge()
Amount if time during which retries may remain queued for retransmission. |
long |
getMinIdleReconnectTime()
Amount of a connection must be idle before a reconnection attempt will be considered. |
boolean |
send(Message msg)
Send a message to the remote peer. |
void |
setLastAccessed(long time)
Set the time when this connection was last used. |
String |
toString()
Return a human-friendly description of this connection. |
Method Detail |
public boolean send(Message msg) throws IOException
IOException
public void close() throws IOException
IOException
public long getMinIdleReconnectTime()
public long getIdleTimeout()
public long getMaxRetryAge()
public long getLastAccessed()
public void setLastAccessed(long time)
public String toString()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |