M
- type of the input MessageEnvelope
OM
- type of the transformed MessageEnvelope
@InterfaceStability.Unstable @FunctionalInterface public interface MapFunction<M extends MessageEnvelope,OM extends MessageEnvelope>
MessageEnvelope
into another MessageEnvelope
, possibly of a different type.Modifier and Type | Method and Description |
---|---|
OM |
apply(M message)
Transforms the provided
MessageEnvelope into another MessageEnvelope |
OM apply(M message)
MessageEnvelope
into another MessageEnvelope
message
- the MessageEnvelope
to be transformedMessageEnvelope