Class DefaultOrphanResponseReporter.Builder

java.lang.Object
com.couchbase.client.core.tracing.DefaultOrphanResponseReporter.Builder
Enclosing class:
DefaultOrphanResponseReporter

public static class DefaultOrphanResponseReporter.Builder
extends Object
The builder to configure the DefaultOrphanResponseReporter
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

    • logInterval

      public DefaultOrphanResponseReporter.Builder logInterval​(long interval, TimeUnit unit)
      Allows to customize the log interval. if set to 0, disables it.
      Parameters:
      interval - the interval to use.
      unit - the time unit for the interval.
      Returns:
      this builder for chaining.
    • sampleSize

      public DefaultOrphanResponseReporter.Builder sampleSize​(int sampleSize)
      Allows to customize the sample size per service.
      Parameters:
      sampleSize - the sample size to set.
      Returns:
      this builder for chaining.
    • pretty

      public DefaultOrphanResponseReporter.Builder pretty​(boolean pretty)
      Allows to set the JSON output to pretty, making it more readable but also more verbose. Helpful during debugging.
      Parameters:
      pretty - set to true, false by default
      Returns:
      this builder for chaining.