Class JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration
- java.lang.Object
-
- org.forgerock.audit.handlers.jdbc.JdbcAuditEventHandlerConfiguration.EventBufferingConfiguration
-
- Enclosing class:
- JdbcAuditEventHandlerConfiguration
public static class JdbcAuditEventHandlerConfiguration.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
getMaxBatchedEvents()
Gets the maximum number of events that can be batched into aPreparedStatement
.int
getMaxSize()
Returns the maximum size of the queue.String
getWriteInterval()
Gets the interval to write the queued buffered events.int
getWriterThreads()
Gets the number of writer threads to use to write buffered events.boolean
isAutoFlush()
Indicates if events are automatically flushed after being written.boolean
isEnabled()
Indicates if event buffering is enabled.void
setAutoFlush(boolean auto)
Sets the auto flush indicator.void
setEnabled(boolean enabled)
Sets the buffering status.void
setMaxBatchedEvents(int maxBatchedEvents)
Sets the maximum number of events that can be batched into aPreparedStatement
.void
setMaxSize(int maxSize)
Sets the maximum size of the events queue.void
setWriteInterval(String writeInterval)
Sets the interval to write the queued buffered events.void
setWriterThreads(int writerThreads)
Sets the number of writer threads to use to write buffered events.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Indicates if event buffering is enabled.- Returns:
true
if buffering is enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Sets the buffering status.- Parameters:
enabled
- Indicates if buffering is enabled.
-
isAutoFlush
public boolean isAutoFlush()
Indicates if events are automatically flushed after being written.- Returns:
true
if events must be flushed
-
setAutoFlush
public void setAutoFlush(boolean auto)
Sets the auto flush indicator.- Parameters:
auto
- Indicates if events are automatically flushed after being written.
-
getMaxSize
public int getMaxSize()
Returns the maximum size of the queue.- Returns:
- maxSize Maximum number of events in the queue.
-
setMaxSize
public void setMaxSize(int maxSize)
Sets the maximum size of the events queue.- Parameters:
maxSize
- Maximum number of events in the queue.
-
getWriteInterval
public String getWriteInterval()
Gets the interval to write the queued buffered events.- Returns:
- The interval as a string.
-
setWriteInterval
public void setWriteInterval(String writeInterval)
Sets the interval to write the queued buffered events.- Parameters:
writeInterval
- The interval as a string.
-
getWriterThreads
public int getWriterThreads()
Gets the number of writer threads to use to write buffered events.- Returns:
- The number of writer threads.
-
setWriterThreads
public void setWriterThreads(int writerThreads)
Sets the number of writer threads to use to write buffered events.- Parameters:
writerThreads
- The number of writer threads.
-
getMaxBatchedEvents
public int getMaxBatchedEvents()
Gets the maximum number of events that can be batched into aPreparedStatement
.- Returns:
- The maximum number of batches.
-
setMaxBatchedEvents
public void setMaxBatchedEvents(int maxBatchedEvents)
Sets the maximum number of events that can be batched into aPreparedStatement
.- Parameters:
maxBatchedEvents
- The maximum number of batches.
-
-