Class JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
java.lang.Object
org.forgerock.audit.handlers.json.JsonAuditEventHandlerConfiguration.EventBufferingConfiguration
- Enclosing class:
- JsonAuditEventHandlerConfiguration
Configuration of event buffering.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintGets 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).voidsetMaxSize(int maxSize) Sets the buffer capacity, which are the maximum number of events that can be buffered.voidsetWriteInterval(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- 
EventBufferingConfigurationpublic EventBufferingConfiguration()
 
- 
- 
Method Details- 
getMaxSizepublic int getMaxSize()Gets the buffer capacity, which are the maximum number of events that can be buffered.- Returns:
- buffer capacity
 
- 
setMaxSizepublic void setMaxSize(int maxSize) Sets the buffer capacity, which are the maximum number of events that can be buffered.- Parameters:
- maxSize- buffer capacity
 
- 
getWriteIntervalGets 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")
 
- 
setWriteIntervalSets 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")
 
 
-