Package com.rabbitmq.stream
Interface ConsumerBuilder.FilterConfiguration
- Enclosing interface:
ConsumerBuilder
public static interface ConsumerBuilder.FilterConfiguration
Filter configuration.
RabbitMQ 3.13 or more is required.
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Go back to the builder.Whether messages without a filter value should be sent as well.matchUnfiltered(boolean matchUnfiltered) Whether messages without a filter value should be sent as well.postFilter(Predicate<Message> filter) Client-side filtering logic, occurring after the server-side filtering.Set the filter values.
-
Method Details
-
values
Set the filter values.- Parameters:
filterValues-- Returns:
- this filter configuration instance
-
postFilter
Client-side filtering logic, occurring after the server-side filtering.It must be consistent with the requested filter
values(String...)and thematchUnfiltered()flag.- Parameters:
filter- a predicate that returnstrueif a message should go to theMessageHandler- Returns:
- this filter configuration instance
-
matchUnfiltered
ConsumerBuilder.FilterConfiguration matchUnfiltered()Whether messages without a filter value should be sent as well.Default is false.
- Returns:
- this filter configuration instance
-
matchUnfiltered
Whether messages without a filter value should be sent as well.Default is false.
- Parameters:
matchUnfiltered-- Returns:
- this filter configuration instance
-
builder
ConsumerBuilder builder()Go back to the builder.- Returns:
- the consumer builder
-