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(BoltChannel boltChannel,
BoltWorkerQueueMonitor queueMonitor) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWorkerpublic MonitoredWorkerFactory(org.neo4j.kernel.monitoring.Monitors monitors,
WorkerFactory delegate,
Clock clock)
public BoltWorker newWorker(BoltChannel boltChannel, BoltWorkerQueueMonitor queueMonitor)
newWorker in interface WorkerFactoryboltChannel - channel over which Bolt messages can be exchangedqueueMonitor - object that will be notified of changes (enqueue, dequeue, drain) in worker job queueCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.