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 theDefaultOrphanResponseReporter
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultOrphanResponseReporter
build()
DefaultOrphanResponseReporter.Builder
logInterval(long interval, TimeUnit unit)
Allows to customize the log interval.DefaultOrphanResponseReporter.Builder
pretty(boolean pretty)
Allows to set the JSON output to pretty, making it more readable but also more verbose.DefaultOrphanResponseReporter.Builder
sampleSize(int sampleSize)
Allows to customize the sample size per service.
-
-
-
Method Detail
-
build
public DefaultOrphanResponseReporter 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.
-
-