|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.transport.reliable.KeepAliveDaemon
KeepAliveDaemon keeps channels alive by sending KeepAlive packets on a specified interval. If the packets aren't don't get a receipt within a specified time, the channel will be forcefully disconnected.
Constructor Summary | |
protected |
KeepAliveDaemon()
Constructs a new KeepAliveDaemon which will send KeepAlive packets throught the wrapped channel. |
Method Summary | |
void |
addMonitoredChannel(ReliableTransportChannel channel)
|
long |
getCheckInterval()
|
static KeepAliveDaemon |
getInstance()
Gets the current instance. |
long |
getLastCheckTime()
|
void |
removeMonitoredChannel(ReliableTransportChannel channel)
|
void |
restart()
|
void |
run()
|
void |
setCheckInterval(long interval)
Sets the number of milliseconds between keep-alive checks are done. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected KeepAliveDaemon()
Method Detail |
public static KeepAliveDaemon getInstance()
public void addMonitoredChannel(ReliableTransportChannel channel)
public void removeMonitoredChannel(ReliableTransportChannel channel)
public void setCheckInterval(long interval)
interval
- the intervalpublic long getCheckInterval()
public long getLastCheckTime()
public void start()
public void stop()
public void restart()
public void run()
run
in interface Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |