P
- The type of the translated message's payload@FunctionalInterface public interface MessageTranslator<P extends Message<?>> extends java.util.function.Function<Message<?>,P>
Message<?>
into a Message
with payload-type P by translating
the message's payload into the specified target-type payload.
The Message Translator is the messaging equivalent of the Adapter pattern described in [GoF]. An adapter converts the interface of a component into a another interface so it can be used in a different context.
Modifier and Type | Method and Description |
---|---|
P |
apply(Message<?> message)
Translates a Message into a Message with payload-type <P>
|