Package org.forgerock.audit.handlers.jms
Class JmsAuditEventHandlerConfiguration.BatchConfiguration
java.lang.Object
org.forgerock.audit.handlers.jms.JmsAuditEventHandlerConfiguration.BatchConfiguration
- Enclosing class:
- JmsAuditEventHandlerConfiguration
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum capacity of the publishing queue.int
Returns the maximum count of events that will be expected to be delivered in a single publish call.Gets the interval for reading events from the buffer to transmit via jms.void
setCapacity
(int capacity) Sets the maximum capacity of the publishing queue.void
setMaxBatchedEvents
(int maxBatchedEvents) Sets the maximum count of events that will be expected to be delivered in a single publish call.void
setWriteInterval
(String writeInterval) Sets the interval for reading events from the buffer to transmit via jms.
-
Constructor Details
-
BatchConfiguration
public BatchConfiguration()
-
-
Method Details
-
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
Gets the interval for reading events from the buffer to transmit via jms.- Returns:
- Interval (e.g., "20 millis")
-
setWriteInterval
Sets the interval for reading events from the buffer to transmit via jms.- Parameters:
writeInterval
- Interval (e.g., "20 millis")
-