You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All `consume()` methods in `TaskRunnerEventsListener` are `default` no-ops, so implementations only need to override the events they care about.
157
+
158
+
For the full Prometheus metrics catalog (counters, timers, gauges, and size histograms), see [`conductor-client-metrics/README.md`](conductor-client-metrics/README.md).
159
+
126
160
## Core Components
127
161
128
162
### 1. EventDispatcher\<T\>
@@ -140,17 +174,28 @@ The core event routing component that manages listener registration and event pu
// Publish an event on the calling thread (for use in UncaughtExceptionHandler, etc.)
193
+
publicvoidpublishSync(Tevent);
151
194
}
152
195
```
153
196
197
+
The 3-arg `register(Class, Object, Consumer)` form is used by `ListenerRegister` with the listener object as the key, making bulk registration idempotent — calling it twice with the same listener instance is a safe no-op.
Utility class for bulk registration of listeners with event dispatchers.
267
+
Utility class for bulk registration of listeners with event dispatchers. Internally, each method calls `dispatcher.register(EventClass.class, listener, listener::consume)` — using the listener object as the key — so calling `register` multiple times with the same `(listener, dispatcher)` pair is a safe no-op.
220
268
221
269
```java
222
270
publicclassListenerRegister {
@@ -308,6 +356,11 @@ For the complete metric catalog and setup instructions, see [`conductor-client-m
Copy file name to clipboardExpand all lines: conductor-client/src/main/java/com/netflix/conductor/client/events/listeners/TaskRunnerEventsListener.java
0 commit comments