Class DisableMetrics
java.lang.Object
io.fluxcapacitor.javaclient.tracking.metrics.DisableMetrics
- All Implemented Interfaces:
BatchInterceptor,HandlerDecorator,HandlerInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerDecorator
HandlerDecorator.MergedDecoratorNested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerInterceptor
HandlerInterceptor.InterceptedHandler -
Field Summary
Fields inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerDecorator
noOp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintercept(Consumer<MessageBatch> consumer, Tracker tracker) interceptHandling(Function<DeserializingMessage, Object> function, HandlerInvoker invoker) Intercepts a message before it's handled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.tracking.BatchInterceptor
andThen, shutdownMethods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerDecorator
andThenMethods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerInterceptor
wrap
-
Constructor Details
-
DisableMetrics
public DisableMetrics()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceBatchInterceptor
-
interceptHandling
public Function<DeserializingMessage,Object> interceptHandling(Function<DeserializingMessage, Object> function, HandlerInvoker invoker) Description copied from interface:HandlerInterceptorIntercepts a message before it's handled. The underlying handler can be invoked using the givenfunction.Before invoking the handler it is possible to inspect or modify the message. It is also possible to block a message simply by returning a function that returns without invoking the handler.
After invoking the handler it is possible to inspect or modify the response.
The given
invokercontains information about the underlying handler.- Specified by:
interceptHandlingin interfaceHandlerInterceptor
-