Class DefaultOrphanResponseReporter
java.lang.Object
com.couchbase.client.core.tracing.DefaultOrphanResponseReporter
- All Implemented Interfaces:
OrphanResponseReporter
public class DefaultOrphanResponseReporter extends Object implements OrphanResponseReporter
The
DefaultOrphanResponseReporter
receives requests's of orphan responses
and stores them for aggregation and logging.- Since:
- 1.6.0
- Author:
- Mike Goldsmith
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultOrphanResponseReporter.Builder
The builder to configure theDefaultOrphanResponseReporter
-
Constructor Summary
Constructors Constructor Description DefaultOrphanResponseReporter(DefaultOrphanResponseReporter.Builder builder)
Creates theOrphanResponseReporter
using the given config. -
Method Summary
Modifier and Type Method Description static DefaultOrphanResponseReporter.Builder
builder()
static DefaultOrphanResponseReporter
create()
static DefaultOrphanResponseReporter
disabled()
void
report(CouchbaseResponse request)
Reports the givenCouchbaseRequest
as a orphan response.void
shutdown()
Stop the reporter and its associated threads.
-
Constructor Details
-
DefaultOrphanResponseReporter
Creates theOrphanResponseReporter
using the given config.
-
-
Method Details
-
builder
-
disabled
-
create
-
report
Reports the givenCouchbaseRequest
as a orphan response.- Specified by:
report
in interfaceOrphanResponseReporter
- Parameters:
request
- the request that shpuld be reported.
-
shutdown
public void shutdown()Stop the reporter and its associated threads.- Specified by:
shutdown
in interfaceOrphanResponseReporter
-