Class AmqpInactivityMonitor
- java.lang.Object
-
- org.apache.activemq.transport.TransportFilter
-
- org.apache.activemq.transport.amqp.AmqpInactivityMonitor
-
- All Implemented Interfaces:
Service,Transport,TransportListener
public class AmqpInactivityMonitor extends TransportFilter
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.transport.TransportFilter
next, transportListener
-
-
Constructor Summary
Constructors Constructor Description AmqpInactivityMonitor(Transport next, WireFormat wireFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmqpTransportgetAmqpTransport()voidonException(IOException error)An unrecoverable exception has occured on the transportvoidsetAmqpTransport(AmqpTransport amqpTransport)voidstart()voidstartConnectionTimeoutChecker(long connectionTimeout)voidstartKeepAliveTask(long nextKeepAliveCheck)Starts the keep alive task which will run after the given delay.voidstop()voidstopConnectionTimeoutChecker()voidstopKeepAliveTask()-
Methods inherited from class org.apache.activemq.transport.TransportFilter
asyncRequest, getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onCommand, oneway, reconnect, request, request, setPeerCertificates, setTransportListener, toString, transportInterupted, transportResumed, updateURIs
-
-
-
-
Constructor Detail
-
AmqpInactivityMonitor
public AmqpInactivityMonitor(Transport next, WireFormat wireFormat)
-
-
Method Detail
-
start
public void start() throws Exception- Specified by:
startin interfaceService- Overrides:
startin classTransportFilter- Throws:
Exception- See Also:
Service.start()
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceService- Overrides:
stopin classTransportFilter- Throws:
Exception- See Also:
Service.stop()
-
onException
public void onException(IOException error)
Description copied from interface:TransportListenerAn unrecoverable exception has occured on the transport- Specified by:
onExceptionin interfaceTransportListener- Overrides:
onExceptionin classTransportFilter
-
setAmqpTransport
public void setAmqpTransport(AmqpTransport amqpTransport)
-
getAmqpTransport
public AmqpTransport getAmqpTransport()
-
startConnectionTimeoutChecker
public void startConnectionTimeoutChecker(long connectionTimeout)
-
startKeepAliveTask
public void startKeepAliveTask(long nextKeepAliveCheck)
Starts the keep alive task which will run after the given delay.- Parameters:
nextKeepAliveCheck- time in milliseconds to wait before performing the next keep-alive check.
-
stopConnectionTimeoutChecker
public void stopConnectionTimeoutChecker()
-
stopKeepAliveTask
public void stopKeepAliveTask()
-
-