public class AmqpInactivityMonitor extends TransportFilter
next, transportListener| Constructor and Description |
|---|
AmqpInactivityMonitor(Transport next,
org.apache.activemq.wireformat.WireFormat wireFormat) |
| Modifier and Type | Method and Description |
|---|---|
AmqpTransport |
getAmqpTransport() |
void |
onException(IOException error) |
void |
setAmqpTransport(AmqpTransport amqpTransport) |
void |
start() |
void |
startConnectionTimeoutChecker(long connectionTimeout) |
void |
startKeepAliveTask(long nextKeepAliveCheck)
Starts the keep alive task which will run after the given delay.
|
void |
stop() |
void |
stopConnectionTimeoutChecker() |
void |
stopKeepAliveTask() |
asyncRequest, getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onCommand, oneway, reconnect, request, request, setTransportListener, toString, transportInterupted, transportResumed, updateURIspublic AmqpInactivityMonitor(Transport next, org.apache.activemq.wireformat.WireFormat wireFormat)
public void start() throws Exception
start in interface org.apache.activemq.Servicestart in class TransportFilterExceptionpublic void stop() throws Exception
stop in interface org.apache.activemq.Servicestop in class TransportFilterExceptionpublic void onException(IOException error)
onException in interface TransportListeneronException in class TransportFilterpublic void setAmqpTransport(AmqpTransport amqpTransport)
public AmqpTransport getAmqpTransport()
public void startConnectionTimeoutChecker(long connectionTimeout)
public void startKeepAliveTask(long nextKeepAliveCheck)
nextKeepAliveCheck - time in milliseconds to wait before performing the next keep-alive check.public void stopConnectionTimeoutChecker()
public void stopKeepAliveTask()
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.