Class JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration
java.lang.Object
org.forgerock.audit.handlers.jdbc.JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration
- Enclosing class:
- JdbcAuditEventHandlerConfiguration
Configuration of event buffering.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum number of events that can be batched into aPreparedStatement.intReturns the maximum size of the queue.Gets the interval to write the queued buffered events.intGets the number of writer threads to use to write buffered events.booleanIndicates if events are automatically flushed after being written.booleanIndicates if event buffering is enabled.voidsetAutoFlush(boolean auto) Sets the auto flush indicator.voidsetEnabled(boolean enabled) Sets the buffering status.voidsetMaxBatchedEvents(int maxBatchedEvents) Sets the maximum number of events that can be batched into aPreparedStatement.voidsetMaxSize(int maxSize) Sets the maximum size of the events queue.voidsetWriteInterval(String writeInterval) Sets the interval to write the queued buffered events.voidsetWriterThreads(int writerThreads) Sets the number of writer threads to use to write buffered events.
-
Constructor Details
-
EventBufferingConfiguration
public EventBufferingConfiguration()
-
-
Method Details
-
isEnabled
Indicates if event buffering is enabled.- Returns:
trueif buffering is enabled.
-
setEnabled
Sets the buffering status.- Parameters:
enabled- Indicates if buffering is enabled.
-
isAutoFlush
Indicates if events are automatically flushed after being written.- Returns:
trueif events must be flushed
-
setAutoFlush
Sets the auto flush indicator.- Parameters:
auto- Indicates if events are automatically flushed after being written.
-
getMaxSize
Returns the maximum size of the queue.- Returns:
- maxSize Maximum number of events in the queue.
-
setMaxSize
Sets the maximum size of the events queue.- Parameters:
maxSize- Maximum number of events in the queue.
-
getWriteInterval
Gets the interval to write the queued buffered events.- Returns:
- The interval as a string.
-
setWriteInterval
Sets the interval to write the queued buffered events.- Parameters:
writeInterval- The interval as a string.
-
getWriterThreads
Gets the number of writer threads to use to write buffered events.- Returns:
- The number of writer threads.
-
setWriterThreads
Sets the number of writer threads to use to write buffered events.- Parameters:
writerThreads- The number of writer threads.
-
getMaxBatchedEvents
Gets the maximum number of events that can be batched into aPreparedStatement.- Returns:
- The maximum number of batches.
-
setMaxBatchedEvents
Sets the maximum number of events that can be batched into aPreparedStatement.- Parameters:
maxBatchedEvents- The maximum number of batches.
-