Class JmsAuditEventHandlerConfiguration.BatchConfiguration

  • Enclosing class:
    JmsAuditEventHandlerConfiguration

    public static class JmsAuditEventHandlerConfiguration.BatchConfiguration
    extends Object
    This class holds the configuration properties that are used by the {#link BatchPublisher} to control the batch queue and worker threads that process the items in the queue.
    • Constructor Detail

      • BatchConfiguration

        public BatchConfiguration()
    • Method Detail

      • getCapacity

        public int getCapacity()
        Returns the maximum capacity of the publishing queue. Execution will block if the queue size is at capacity.
        Returns:
        the maximum capacity of the publishing queue
      • setCapacity

        public void setCapacity​(int capacity)
        Sets the maximum capacity of the publishing queue.
        Parameters:
        capacity - the maximum capacity of the publishing queue
      • getMaxBatchedEvents

        public int getMaxBatchedEvents()
        Returns the maximum count of events that will be expected to be delivered in a single publish call.
        Returns:
        the maximum count of events that will be expected to be delivered in a single publish call.
      • setMaxBatchedEvents

        public void setMaxBatchedEvents​(int maxBatchedEvents)
        Sets the maximum count of events that will be expected to be delivered in a single publish call.
        Parameters:
        maxBatchedEvents - the maximum count of events
      • getWriteInterval

        public String getWriteInterval()
        Gets the interval for reading events from the buffer to transmit via jms.
        Returns:
        Interval (e.g., "20 millis")
      • setWriteInterval

        public void setWriteInterval​(String writeInterval)
        Sets the interval for reading events from the buffer to transmit via jms.
        Parameters:
        writeInterval - Interval (e.g., "20 millis")