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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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")