Class AmqpDistribution

    • 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
      • connectionNames

        private List<String> connectionNames
      • amqpQueue

        private String amqpQueue
      • amqpQueuePassive

        private boolean amqpQueuePassive
      • amqpQueueExclusive

        private boolean amqpQueueExclusive
      • amqpQueueDurable

        private boolean amqpQueueDurable
      • amqpQueueAutoDelete

        private boolean amqpQueueAutoDelete
      • lastUpdate

        private long lastUpdate
      • updatePeriod

        private long updatePeriod
    • Constructor Detail

      • AmqpDistribution

        public AmqpDistribution()
    • Method Detail

      • init

        public void init​(Properties properties,
                         boolean firstTime)
        Description copied from interface: DistributionHandler
        Configures the handler with the given properties.
        Specified by:
        init in interface DistributionHandler
        Parameters:
        properties - The initial set of properties.
      • distribute

        public void distribute​(Message fullMessage)
                        throws Exception
        Description copied from interface: DistributionHandler
        Distributes the given message outside of the JORAM server.
        Specified by:
        distribute in interface DistributionHandler
        Parameters:
        fullMessage - the message to distribute
        Throws:
        Exception - if the message could not be distributed. The message will be forwarded to a DMQ, if any.
      • close

        public void close()
        Description copied from interface: DistributionHandler
        Closes this handler and releases any system resources associated to it. There will be no subsequent call to this handler after it has been closed.
        Specified by:
        close in interface DistributionHandler