Package org.forgerock.audit.handlers.jms
Class JmsAuditEventHandlerConfiguration.BatchConfiguration
- java.lang.Object
-
- org.forgerock.audit.handlers.jms.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 Summary
Constructors Constructor Description BatchConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCapacity()
Returns the maximum capacity of the publishing queue.int
getMaxBatchedEvents()
Returns the maximum count of events that will be expected to be delivered in a single publish call.String
getWriteInterval()
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.
-
-
-
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")
-
-