public class MonitoredWorkerFactory extends Object implements WorkerFactory
WorkerFactory that adds monitoring capabilities, which
means Bolt can be introspected at runtime by adding Monitor listeners.
This adds no overhead if no listeners are registered.| Modifier and Type | Class and Description |
|---|---|
static interface |
MonitoredWorkerFactory.SessionMonitor
For monitoring the Bolt protocol, implementing and registering this monitor allows
tracking requests arriving via the Bolt protocol and the queuing and processing times
of those requests.
|
| Constructor and Description |
|---|
MonitoredWorkerFactory(org.neo4j.kernel.monitoring.Monitors monitors,
WorkerFactory delegate,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
BoltWorker |
newWorker(BoltConnectionDescriptor connectionDescriptor,
Runnable onClose) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWorkerpublic MonitoredWorkerFactory(org.neo4j.kernel.monitoring.Monitors monitors,
WorkerFactory delegate,
Clock clock)
public BoltWorker newWorker(BoltConnectionDescriptor connectionDescriptor, Runnable onClose)
newWorker in interface WorkerFactoryconnectionDescriptor - describes the underlying medium (TCP, HTTP, ...)onClose - callback for closing the underlying connection in case of protocol violation.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.