Class AmqpAcquisition

    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • QUEUE_PASSIVE_PROP

        private static final String QUEUE_PASSIVE_PROP
        True if we are declaring a queue passively; i.e., check if it exists. Default value is true.
        See Also:
        Constant Field Values
      • QUEUE_EXCLUSIVE_PROP

        private static final String QUEUE_EXCLUSIVE_PROP
        True if we are declaring an exclusive queue (restricted to this connection). Default value is false.
        See Also:
        Constant Field Values
      • QUEUE_DURABLE_PROP

        private static final String QUEUE_DURABLE_PROP
        True if we are declaring a durable queue (the queue will survive a server restart). Default value is true.
        See Also:
        Constant Field Values
      • QUEUE_AUTODELETE_PROP

        private static final String QUEUE_AUTODELETE_PROP
        True if we are declaring an autodelete queue (server will delete it when no longer in use). Default value is false.
        See Also:
        Constant Field Values
      • channels

        private Map<String,​com.rabbitmq.client.Channel> channels
      • connectionNames

        private List<String> connectionNames
        If routing prop has been set, it defines a list of connection to use.
      • amqpQueue

        private String amqpQueue
        The name of the foreign AMQP queue.
      • amqpQueuePassive

        private boolean amqpQueuePassive
      • amqpQueueExclusive

        private boolean amqpQueueExclusive
      • amqpQueueDurable

        private boolean amqpQueueDurable
      • amqpQueueAutoDelete

        private boolean amqpQueueAutoDelete
      • closing

        private volatile boolean closing
    • Constructor Detail

      • AmqpAcquisition

        public AmqpAcquisition()
    • Method Detail

      • start

        public void start​(Properties properties,
                          ReliableTransmitter transmitter)
        Description copied from interface: AcquisitionDaemon
        Tells the daemon to start with the given properties.
        Specified by:
        start in interface AcquisitionDaemon
        Parameters:
        properties - The initial set of properties.
        transmitter - a transmitter used to transmit retrieved messages to the MOM reliably.
      • stop

        public void stop()
        Description copied from interface: AcquisitionDaemon
        Tells the daemon to stop. Any system resources previously allocated must be released.
        Specified by:
        stop in interface AcquisitionDaemon
      • updateConnections

        public void updateConnections​(List<LiveServerConnection> connections)
        Create a new AMQP consumer for each connection available.