|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.util.pipe.reliable.OutgoingMsgrAdaptor
public class OutgoingMsgrAdaptor
OutgoingMessengerAdaptor
Constructor Summary | |
---|---|
OutgoingMsgrAdaptor(Messenger msgr,
int timeout)
Constructor for the OutgoingMsgrAdaptor object |
Method Summary | |
---|---|
void |
close()
close the messenger (does not close the messenger) |
long |
getIdleTimeout()
Gets the idleTimeout of the OutgoingMsgrAdaptor. |
long |
getLastAccessed()
Gets the lastAccessed time of OutgoingMsgrAdaptor |
long |
getMaxRetryAge()
Gets the maxRetryAge attribute of the OutgoingMsgrAdaptor |
long |
getMinIdleReconnectTime()
Gets the minIdleReconnectTime of the OutgoingMsgrAdaptor (obsolete). |
boolean |
send(Message msg)
Sends a message |
void |
setLastAccessed(long time)
Sets the lastAccessed of OutgoingMsgrAdaptor |
void |
setTimeout(int timeout)
Sets the Timeout attribute. |
String |
toString()
returns last accessed time as a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutgoingMsgrAdaptor(Messenger msgr, int timeout)
msgr
- the messenger used to send messagestimeout
- timeout in millisecondsMethod Detail |
---|
public String toString()
toString
in class Object
public void setTimeout(int timeout)
setTimeout
in interface Outgoing
timeout
- The new soTimeout valuepublic void close()
close
in interface Outgoing
public long getMinIdleReconnectTime()
getMinIdleReconnectTime
in interface Outgoing
public long getIdleTimeout()
getIdleTimeout
in interface Outgoing
Long.MAX_VALUE
public long getMaxRetryAge()
getMaxRetryAge
in interface Outgoing
public long getLastAccessed()
getLastAccessed
in interface Outgoing
public void setLastAccessed(long time)
setLastAccessed
in interface Outgoing
time
- The new lastAccessed in millisecondspublic boolean send(Message msg) throws IOException
send
in interface Outgoing
msg
- message to send
IOException
- if an io error occurs
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |