Class ElasticsearchAuditEventHandlerConfiguration.EventBufferingConfiguration
java.lang.Object
org.forgerock.audit.handlers.elasticsearch.ElasticsearchAuditEventHandlerConfiguration.EventBufferingConfiguration
- Enclosing class:
- ElasticsearchAuditEventHandlerConfiguration
public static class ElasticsearchAuditEventHandlerConfiguration.EventBufferingConfiguration
extends Object
Configuration of event buffering.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum number of events to read from the buffer on eachinterval.intGets 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 Elasticsearch.booleanIndicates if event buffering is enabled.voidsetEnabled(boolean enabled) Sets the buffering status.voidsetMaxBatchedEvents(int maxBatchedEvents) Sets the maximum number of events to read from the buffer on eachinterval.voidsetMaxSize(int maxSize) Sets the buffer capacity, which are the maximum number of events that can be buffered.voidsetWriteInterval(String writeInterval) Sets the interval for reading events from the buffer to transmit to Elasticsearch.
-
Constructor Details
-
EventBufferingConfiguration
public EventBufferingConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Indicates if event buffering is enabled.- Returns:
trueif buffering is enabled.
-
setEnabled
public void setEnabled(boolean enabled) Sets the buffering status.- Parameters:
enabled- Indicates if buffering is enabled.
-
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 Elasticsearch.- Returns:
- Interval (e.g., "20 millis")
-
setWriteInterval
Sets the interval for reading events from the buffer to transmit to Elasticsearch.- 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
-