Class AmqpInactivityMonitor
java.lang.Object
org.apache.activemq.transport.TransportFilter
org.apache.activemq.transport.amqp.AmqpInactivityMonitor
- All Implemented Interfaces:
org.apache.activemq.Service,Transport,TransportListener
-
Field Summary
Fields inherited from class org.apache.activemq.transport.TransportFilter
next, transportListener -
Constructor Summary
ConstructorsConstructorDescriptionAmqpInactivityMonitor(Transport next, org.apache.activemq.wireformat.WireFormat wireFormat) -
Method Summary
Modifier and TypeMethodDescriptionvoidonException(IOException error) voidsetAmqpTransport(AmqpTransport amqpTransport) voidstart()voidstartConnectionTimeoutChecker(long connectionTimeout) voidstartKeepAliveTask(long nextKeepAliveCheck) Starts the keep alive task which will run after the given delay.voidstop()voidvoidMethods 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 Details
-
AmqpInactivityMonitor
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Overrides:
startin classTransportFilter- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Overrides:
stopin classTransportFilter- Throws:
Exception
-
onException
- Specified by:
onExceptionin interfaceTransportListener- Overrides:
onExceptionin classTransportFilter
-
setAmqpTransport
-
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()
-