M
- type of the input message@InterfaceStability.Unstable @FunctionalInterface public interface FilterFunction<M> extends InitableFunction, ClosableFunction, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
apply(M message)
Returns a boolean indicating whether this message should be retained or filtered out.
|
init
close
boolean apply(M message)
message
- the input message to be checkedmessage
should be retained