Class DefaultOrphanResponseReporter
- java.lang.Object
-
- com.couchbase.client.core.tracing.DefaultOrphanResponseReporter
-
- All Implemented Interfaces:
OrphanResponseReporter
public class DefaultOrphanResponseReporter extends Object implements OrphanResponseReporter
TheDefaultOrphanResponseReporter
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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
DefaultOrphanResponseReporter
public DefaultOrphanResponseReporter(DefaultOrphanResponseReporter.Builder builder)
Creates theOrphanResponseReporter
using the given config.
-
-
Method Detail
-
builder
public static DefaultOrphanResponseReporter.Builder builder()
-
disabled
public static DefaultOrphanResponseReporter disabled()
-
create
public static DefaultOrphanResponseReporter create()
-
report
public void report(CouchbaseResponse request)
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
-
-