|
Project 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 NEVER. |
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 void setTimeout(int timeout)
timeout
- The new soTimeout valuepublic void close() throws IOException
close
in interface Outgoing
IOException
- Description of the Exceptionpublic long getMinIdleReconnectTime()
getMinIdleReconnectTime
in interface Outgoing
public long getIdleTimeout()
getIdleTimeout
in interface Outgoing
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 String toString()
toString
in interface Outgoing
toString
in class Object
public boolean send(Message msg) throws IOException
send
in interface Outgoing
msg
- message to send
IOException
- if an io error occurs
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |