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 Summary
Constructors Constructor Description Builder()
-
Method Summary
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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
logInterval
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
Allows to customize the sample size per service.- Parameters:
sampleSize
- the sample size to set.- Returns:
- this builder for chaining.
-
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.
-