java.lang.Object
io.fluxzero.sdk.tracking.metrics.TrackerMonitor
- All Implemented Interfaces:
BatchInterceptor
-
Constructor Details
-
TrackerMonitor
public TrackerMonitor()
-
-
Method Details
-
intercept
public Consumer<io.fluxzero.common.api.tracking.MessageBatch> intercept(Consumer<io.fluxzero.common.api.tracking.MessageBatch> consumer, Tracker tracker) Description copied from interface:BatchInterceptorIntercepts the given batch message consumer and returns a decorated version to be invoked by the tracker.- Specified by:
interceptin interfaceBatchInterceptor- Parameters:
consumer- the original consumer that processes theMessageBatchtracker- the tracker invoking this interceptor- Returns:
- a wrapped consumer with additional behavior
-