Interface MetadataFilter
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MetadataFilter
Implement to control which events should be handled by aStreamProcessorbased on the event's metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MetadataFilterand(MetadataFilter other)booleanapplies(RecordMetadata metadata)
-
-
-
Method Detail
-
applies
boolean applies(RecordMetadata metadata)
- Parameters:
metadata- the metadata of the event to be processed next- Returns:
- true to mark the event for processing; false to skip it
- Throws:
RuntimeException- to signal that processing cannot continue
-
and
default MetadataFilter and(MetadataFilter other)
-
-