Class MapBasedQueueDef

    • Constructor Detail

      • MapBasedQueueDef

        public MapBasedQueueDef​(PropertyTree definition)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: QueueDefinition
        The name of the protocol. This is used as a suffix for any associated queues that are created and must be the same on both OpenNMS and Minion.
        Specified by:
        getName in interface QueueDefinition
        Returns:
        the protocol name
      • getBatchSize

        public Optional<Integer> getBatchSize()
        Description copied from interface: QueueDefinition
        Messages are aggregated in batches before being dispatched. When the batch reaches this size, it will be dispatched.
        Specified by:
        getBatchSize in interface QueueDefinition
        Returns:
        the batch size
      • getBatchIntervalMs

        public Optional<Integer> getBatchIntervalMs()
        Description copied from interface: QueueDefinition
        Messages are aggregated in batches before being dispatched. When the batch has been created for longer than this interval (ms) it will be dispatched, regardless of the current size.
        Specified by:
        getBatchIntervalMs in interface QueueDefinition
        Returns:
        the batch interval
      • getUseRoutingKey

        public Optional<Boolean> getUseRoutingKey()
        Description copied from interface: QueueDefinition
        Whether or not the routing key should be used when forwarding messages to the broker.
        Specified by:
        getUseRoutingKey in interface QueueDefinition
        Returns:
        whether or not to use the routing key