|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Outgoing
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 |
---|
boolean send(Message msg) throws IOException
IOException
void close() throws IOException
IOException
long getMinIdleReconnectTime()
long getIdleTimeout()
long getMaxRetryAge()
long getLastAccessed()
void setLastAccessed(long time)
String toString()
toString
in class Object
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |