Module io.fluxzero.sdk
Class HandlerDecorator.MergedDecorator
java.lang.Object
io.fluxzero.sdk.tracking.handling.HandlerDecorator.MergedDecorator
- All Implemented Interfaces:
HandlerDecorator
- Enclosing interface:
HandlerDecorator
A composite decorator that merges two decorators into one. The
second is applied first, then
first.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxzero.sdk.tracking.handling.HandlerDecorator
HandlerDecorator.MergedDecorator -
Field Summary
Fields inherited from interface io.fluxzero.sdk.tracking.handling.HandlerDecorator
noOp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.handling.Handler<DeserializingMessage> wrap(io.fluxzero.common.handling.Handler<DeserializingMessage> handler) Wraps the given handler with additional behavior.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxzero.sdk.tracking.handling.HandlerDecorator
andThen
-
Constructor Details
-
MergedDecorator
public MergedDecorator()
-
-
Method Details
-
wrap
public io.fluxzero.common.handling.Handler<DeserializingMessage> wrap(io.fluxzero.common.handling.Handler<DeserializingMessage> handler) Description copied from interface:HandlerDecoratorWraps the given handler with additional behavior.- Specified by:
wrapin interfaceHandlerDecorator- Parameters:
handler- the original handler to be wrapped- Returns:
- a decorated handler
-