Class OrphanReporterConfig

java.lang.Object
com.couchbase.client.core.env.OrphanReporterConfig

public class OrphanReporterConfig extends Object
Allows to customize the behavior of the OrphanReporter.
  • Method Details

    • builder

      @Deprecated public static OrphanReporterConfig.Builder builder()
      Deprecated.
      Instead of creating a new builder, please use CoreEnvironment.Builder.orphanReporterConfig(Consumer) and configure the builder passed to the consumer. Note: CoreEnvironment is a base class; you'll probably call that method via a subclass named ClusterEnvironment.
      Allows to configure a custom OrphanReporterConfig through a Builder API.
      Returns:
      the builder to customize the config.
    • create

      @Deprecated public static OrphanReporterConfig create()
      Deprecated.
      Instead, please use CoreEnvironment.Builder.orphanReporterConfig(Consumer) and configure the builder passed to the consumer. Note: CoreEnvironment is a base class; you'll probably call that method via a subclass named ClusterEnvironment.
      Creates the default config for the OrphanReporter.
      Returns:
      the default config.
    • sampleSize

      @Deprecated public static OrphanReporterConfig.Builder sampleSize(int sampleSize)
      Deprecated.
      This method creates a new builder. Please see the deprecation notice on builder().
      Allows to customize the sample size per service.
      Parameters:
      sampleSize - the sample size to set.
      Returns:
      this builder for chaining.
    • emitInterval

      @Deprecated public static OrphanReporterConfig.Builder emitInterval(Duration emitInterval)
      Deprecated.
      This method creates a new builder. Please see the deprecation notice on builder().
      Allows to customize the event emit interval.
      Parameters:
      emitInterval - the interval to use.
      Returns:
      this builder for chaining.
    • queueLength

      @Deprecated public static OrphanReporterConfig.Builder queueLength(int queueLength)
      Deprecated.
      This method creates a new builder. Please see the deprecation notice on builder().
      Allows to configure the max queue size for the responses waiting to be analyzed for reporting.
      Parameters:
      queueLength - the queue size to use.
      Returns:
      this builder for chaining.
    • enabled

      @Deprecated public static OrphanReporterConfig.Builder enabled(boolean enabled)
      Deprecated.
      This method creates a new builder. Please see the deprecation notice on builder().
      Allows to configure the status (enabled/disabled) of this reporter.
      Parameters:
      enabled - the status of this reporter.
      Returns:
      this builder for chaining.
    • emitInterval

      public Duration emitInterval()
      Returns the configured emit interval.
    • sampleSize

      public int sampleSize()
      Returns the configured sample size.
    • queueLength

      public int queueLength()
      Returns the configured queue length.
    • enabled

      public boolean enabled()
      Returns the status (enabled/disabled).