|
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. |
void |
setTimeout(int timeout)
Sets the Timeout attribute. |
Method Detail |
---|
boolean send(Message msg) throws IOException
msg
- the message
IOException
- if io error occursvoid close()
long getMinIdleReconnectTime()
void setTimeout(int timeout)
timeout
- The new soTimeout valuelong getIdleTimeout()
long getMaxRetryAge()
long getLastAccessed()
void setLastAccessed(long time)
time
- in millis
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |