Package com.couchbase.client.core.cnc
Class OrphanReporter
java.lang.Object
com.couchbase.client.core.cnc.OrphanReporter
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOrphanReporter(EventBus eventBus, OrphanReporterConfig config) Creates a newOrphanReporter. -
Method Summary
-
Field Details
-
ORPHAN_TREAD_PREFIX
- See Also:
-
-
Constructor Details
-
OrphanReporter
Creates a newOrphanReporter.Please do not instantiate this class directly, but rather let it be handled through the environment and customize it through the
OrphanReporterConfigwhich can also be provided on the environment.- Parameters:
eventBus- the event bus where the messages should be emitted on.config- the configuration for this reporter.
-
-
Method Details
-
config
Returns the currently active configuration. -
start
Starts the orphan reporter.- Returns:
- completes the Mono once it has been started properly.
-
stop
Stops the orphan reporter.- Returns:
- completes the Mono once it has been stopped properly.
-
report
Reports an orphanedRequest.If the orphan could not be recorded because the buffer is full, a
OrphanRecordDroppedEventwill be raised on the event bus.If you wish to ignore certain requests as being considered in the orphan reporting, make sure they implement the
UnmonitoredRequestmarker interface.- Parameters:
request- the request to report as orphan.
-