M
- type of the input MessageEnvelope
@InterfaceStability.Unstable @FunctionalInterface public interface FilterFunction<M extends MessageEnvelope>
MessageEnvelope
should be retained for further processing or filtered out.Modifier and Type | Method and Description |
---|---|
boolean |
apply(M message)
Returns a boolean indicating whether this
MessageEnvelope should be retained or filtered out. |
boolean apply(M message)
MessageEnvelope
should be retained or filtered out.message
- the MessageEnvelope
to be checkedMessageEnvelope
should be retained