Class JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
- java.lang.Object
-
- org.forgerock.audit.handlers.json.JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
-
- Enclosing class:
- JsonAuditEventHandlerConfiguration
public static class JsonAuditEventHandlerConfiguration.EventBufferingConfiguration extends Object
Configuration of event buffering.
-
-
Constructor Summary
Constructors Constructor Description EventBufferingConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxSize()
Gets the buffer capacity, which are the maximum number of events that can be buffered.String
getWriteInterval()
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).
-
-
-
Method Detail
-
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
public String 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
public 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).- Parameters:
writeInterval
- Interval (e.g., "20 millis")
-
-