Class TrackerMonitor
java.lang.Object
io.fluxcapacitor.javaclient.tracking.metrics.TrackerMonitor
- All Implemented Interfaces:
BatchInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintercept
(Consumer<MessageBatch> consumer, Tracker tracker) Intercepts the given batch message consumer and returns a decorated version to be invoked by the tracker.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.BatchInterceptor
andThen, shutdown
-
Constructor Details
-
TrackerMonitor
public TrackerMonitor()
-
-
Method Details
-
intercept
Description copied from interface:BatchInterceptor
Intercepts the given batch message consumer and returns a decorated version to be invoked by the tracker.- Specified by:
intercept
in interfaceBatchInterceptor
- Parameters:
consumer
- the original consumer that processes theMessageBatch
tracker
- the tracker invoking this interceptor- Returns:
- a wrapped consumer with additional behavior
-