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

public class AmqpInactivityMonitor extends TransportFilter
  • Constructor Details

    • AmqpInactivityMonitor

      public AmqpInactivityMonitor(Transport next, org.apache.activemq.wireformat.WireFormat wireFormat)
  • Method Details

    • start

      public void start() throws Exception
      Specified by:
      start in interface org.apache.activemq.Service
      Overrides:
      start in class TransportFilter
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.activemq.Service
      Overrides:
      stop in class TransportFilter
      Throws:
      Exception
    • onException

      public void onException(IOException error)
      Specified by:
      onException in interface TransportListener
      Overrides:
      onException in class TransportFilter
    • 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()