public class DefaultOrphanResponseReporter extends Object implements OrphanResponseReporter
DefaultOrphanResponseReporter
receives requests's of orphan responses
and stores them for aggregation and logging.Modifier and Type | Class and Description |
---|---|
static class |
DefaultOrphanResponseReporter.Builder
The builder to configure the
DefaultOrphanResponseReporter |
Constructor and Description |
---|
DefaultOrphanResponseReporter(DefaultOrphanResponseReporter.Builder builder)
Creates the
OrphanResponseReporter using the given config. |
Modifier and Type | Method and Description |
---|---|
static DefaultOrphanResponseReporter.Builder |
builder() |
static DefaultOrphanResponseReporter |
create() |
static DefaultOrphanResponseReporter |
disabled() |
void |
report(CouchbaseResponse request)
Reports the given
CouchbaseRequest as a orphan response. |
void |
shutdown()
Stop the reporter and its associated threads.
|
public DefaultOrphanResponseReporter(DefaultOrphanResponseReporter.Builder builder)
OrphanResponseReporter
using the given config.public static DefaultOrphanResponseReporter.Builder builder()
public static DefaultOrphanResponseReporter disabled()
public static DefaultOrphanResponseReporter create()
public void report(CouchbaseResponse request)
CouchbaseRequest
as a orphan response.report
in interface OrphanResponseReporter
request
- the request that shpuld be reported.public void shutdown()
shutdown
in interface OrphanResponseReporter
Copyright © 2021 Couchbase, Inc.. All rights reserved.