Class TrackerMonitor
java.lang.Object
io.fluxzero.sdk.tracking.metrics.TrackerMonitor
- All Implemented Interfaces:
BatchInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface BatchInterceptor
BatchInterceptor.FilterPreserving -
Field Summary
Fields inherited from interface BatchInterceptor
defaultInterceptors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeConsumerFilter(ConsumerFilter downstream) Describes serialized inputs needed by this interceptor and its downstream consumer.intercept(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BatchInterceptor
andThen, shutdown
-
Constructor Details
-
TrackerMonitor
public TrackerMonitor()
-
-
Method Details
-
intercept
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
-
describeConsumerFilter
Description copied from interface:BatchInterceptorDescribes serialized inputs needed by this interceptor and its downstream consumer. The default is unrestricted because interceptors can transform messages or require inputs that no handler accepts. Implementations may returndownstreamonly when excluded inputs are irrelevant to their behavior and they never transform an excluded input into one the downstream filter admits. Custom inverse projections describe the input side of a transformation; this method runs after serializer/upcaster projection.- Specified by:
describeConsumerFilterin interfaceBatchInterceptor
-