M
- type of the input MessageEnvelope
OM
- type of the transformed MessageEnvelope
s@InterfaceStability.Unstable @FunctionalInterface public interface FlatMapFunction<M extends MessageEnvelope,OM extends MessageEnvelope>
MessageEnvelope
into a collection of 0 or more MessageEnvelope
s,
possibly of a different type.Modifier and Type | Method and Description |
---|---|
java.util.Collection<OM> |
apply(M message)
Transforms the provided
MessageEnvelope into a collection of 0 or more MessageEnvelope s. |
java.util.Collection<OM> apply(M message)
MessageEnvelope
into a collection of 0 or more MessageEnvelope
s.message
- the MessageEnvelope
to be transformedMessageEnvelope
s