Class SplunkAuditEventHandlerConfiguration.BufferingConfiguration
java.lang.Object
org.forgerock.audit.handlers.splunk.SplunkAuditEventHandlerConfiguration.BufferingConfiguration
- Enclosing class:
- SplunkAuditEventHandlerConfiguration
public static final class SplunkAuditEventHandlerConfiguration.BufferingConfiguration
extends Object
Configuration of event buffering.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the maximum number of events to read from the buffer on eachinterval
.int
Gets the buffer capacity, which are the maximum number of events that can be buffered.Gets the interval for reading events from the buffer to transmit to splunk.void
setMaxBatchedEvents
(int maxBatchedEvents) Sets the maximum number of events to read from the buffer on eachinterval
.void
setMaxSize
(int maxSize) Sets the buffer capacity, which are the maximum number of events that can be buffered.void
setWriteInterval
(String writeInterval) Sets the interval for reading events from the buffer to transmit to splunk.
-
Constructor Details
-
BufferingConfiguration
public BufferingConfiguration()
-
-
Method Details
-
getMaxSize
public int getMaxSize()Gets the buffer capacity, which are the maximum number of events that can be buffered.- Returns:
- buffer capacity
-
setMaxSize
public void setMaxSize(int maxSize) Sets the buffer capacity, which are the maximum number of events that can be buffered.- Parameters:
maxSize
- buffer capacity
-
getWriteInterval
Gets the interval for reading events from the buffer to transmit to splunk.- Returns:
- Interval (e.g., "20 millis")
-
setWriteInterval
Sets the interval for reading events from the buffer to transmit to splunk.- Parameters:
writeInterval
- Interval (e.g., "20 millis")
-
getMaxBatchedEvents
public int getMaxBatchedEvents()Gets the maximum number of events to read from the buffer on eachinterval
.- Returns:
- Batch size
-
setMaxBatchedEvents
public void setMaxBatchedEvents(int maxBatchedEvents) Sets the maximum number of events to read from the buffer on eachinterval
.- Parameters:
maxBatchedEvents
- Batch size
-