Class HandlerInterceptor.InterceptedHandler
java.lang.Object
io.fluxcapacitor.javaclient.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 io.fluxcapacitor.common.handling.Handler
Handler.DelegatingHandler<M>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInvoker
(DeserializingMessage message) Returns aHandlerInvoker
capable 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:Handler
Returns aHandlerInvoker
capable of processing the given message, if available.- Specified by:
getInvoker
in interfaceHandler<DeserializingMessage>
- Parameters:
message
- the message to be handled- Returns:
- an optional
HandlerInvoker
if this handler can handle the message; otherwiseOptional.empty()
-
getTargetClass
Description copied from interface:Handler
Returns the class of the handler's target object. This may be used for reflective operations, logging, or framework-level behavior.- Specified by:
getTargetClass
in interfaceHandler<DeserializingMessage>
- Returns:
- the class of the handler's target
-
toString
-