Class HandlerInterceptor.InterceptedHandler
java.lang.Object
io.fluxzero.sdk.tracking.handling.HandlerInterceptor.InterceptedHandler
- All Implemented Interfaces:
Handler<DeserializingMessage>
- Enclosing interface:
HandlerInterceptor
public static class HandlerInterceptor.InterceptedHandler
extends Object
implements Handler<DeserializingMessage>
Implementation of
Handler that delegates to another handler and applies a HandlerInterceptor.-
Nested Class Summary
Nested classes/interfaces inherited from interface Handler
Handler.DelegatingHandler<M> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInvoker(DeserializingMessage message) Returns aHandlerInvokercapable of processing the given message, if available.Class<?> Returns the class of the handler's target object.toString()
-
Constructor Details
-
InterceptedHandler
public InterceptedHandler()
-
-
Method Details
-
getInvoker
Description copied from interface:HandlerReturns aHandlerInvokercapable of processing the given message, if available.- Specified by:
getInvokerin interfaceHandler<DeserializingMessage>- Parameters:
message- the message to be handled- Returns:
- an optional
HandlerInvokerif this handler can handle the message; otherwiseOptional.empty()
-
getTargetClass
Description copied from interface:HandlerReturns the class of the handler's target object. This may be used for reflective operations, logging, or framework-level behavior.- Specified by:
getTargetClassin interfaceHandler<DeserializingMessage>- Returns:
- the class of the handler's target
-
toString
-