Interface MetadataFilter
- All Known Implementing Classes:
RecordProtocolVersionFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implement to control which events should be handled by a
StreamProcessor
based on the
event's metadata.-
Method Summary
Modifier and TypeMethodDescriptiondefault MetadataFilter
and
(MetadataFilter other) boolean
applies
(RecordMetadata metadata)
-
Method Details
-
applies
- 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
-