Package com.rabbitmq.stream
Interface ConsumerBuilder.FilterConfiguration
-
- Enclosing interface:
- ConsumerBuilder
public static interface ConsumerBuilder.FilterConfigurationFilter configuration.RabbitMQ 3.13 or more is required.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConsumerBuilderbuilder()Go back to the builder.ConsumerBuilder.FilterConfigurationmatchUnfiltered()Whether messages without a filter value should be sent as well.ConsumerBuilder.FilterConfigurationmatchUnfiltered(boolean matchUnfiltered)Whether messages without a filter value should be sent as well.ConsumerBuilder.FilterConfigurationpostFilter(Predicate<Message> filter)Client-side filtering logic, occurring after the server-side filtering.ConsumerBuilder.FilterConfigurationvalues(String... filterValues)Set the filter values.
-
-
-
Method Detail
-
values
ConsumerBuilder.FilterConfiguration values(String... filterValues)
Set the filter values.- Parameters:
filterValues-- Returns:
- this filter configuration instance
-
postFilter
ConsumerBuilder.FilterConfiguration postFilter(Predicate<Message> filter)
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
ConsumerBuilder.FilterConfiguration matchUnfiltered(boolean 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
-
-