Class NoSqlAppender.Builder<B extends NoSqlAppender.Builder<B>>

Type Parameters:
B - The type to build
All Implemented Interfaces:
Builder<NoSqlAppender>
Enclosing class:
NoSqlAppender

public static class NoSqlAppender.Builder<B extends NoSqlAppender.Builder<B>> extends AbstractAppender.Builder<B> implements Builder<NoSqlAppender>
Builds ConsoleAppender instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public NoSqlAppender build()
      Description copied from interface: Builder
      Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.
      Specified by:
      build in interface Builder<B extends NoSqlAppender.Builder<B>>
      Returns:
      the configured instance.
    • setBufferSize

      public B setBufferSize(int bufferSize)
      Sets the buffer size.
      Parameters:
      bufferSize - If an integer greater than 0, this causes the appender to buffer log events and flush whenever the buffer reaches this size.
      Returns:
      this
    • setProvider

      public B setProvider(NoSqlProvider<?> provider)
      Sets the provider.
      Parameters:
      provider - The NoSQL provider that provides connections to the chosen NoSQL database.
      Returns:
      this