Class JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
java.lang.Object
org.forgerock.audit.handlers.json.JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
- Enclosing class:
- JsonAuditEventHandlerConfiguration
Configuration of event buffering.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the buffer capacity, which are the maximum number of events that can be buffered.Gets delay after which the file-writer thread is scheduled to run after encountering an empty event buffer (units of 'ms' are recommended).void
setMaxSize
(int maxSize) Sets the buffer capacity, which are the maximum number of events that can be buffered.void
setWriteInterval
(String writeInterval) Sets delay after which the file-writer thread is scheduled to run after encountering an empty event buffer (units of 'ms' are recommended).
-
Constructor Details
-
EventBufferingConfiguration
public EventBufferingConfiguration()
-
-
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 delay after which the file-writer thread is scheduled to run after encountering an empty event buffer (units of 'ms' are recommended).- Returns:
- Interval (e.g., "20 millis")
-
setWriteInterval
Sets delay after which the file-writer thread is scheduled to run after encountering an empty event buffer (units of 'ms' are recommended).- Parameters:
writeInterval
- Interval (e.g., "20 millis")
-