Package com.rabbitmq.client.amqp
Interface ConsumerBuilder.StreamOptions
- Enclosing interface:
ConsumerBuilder
public static interface ConsumerBuilder.StreamOptions
Options for a consumer consuming from a stream.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Return the consumer builder.filter()
Options for AMQP filter expressions.filterMatchUnfiltered
(boolean matchUnfiltered) Whether messages without a filter value should be sent.filterValues
(String... values) Filter values for stream filtering.offset
(long offset) The offset to start consuming from.offset
(ConsumerBuilder.StreamOffsetSpecification specification) The offset to start consuming from.The offset to start consuming from as an interval string value.A point in time to start consuming from.
-
Method Details
-
offset
The offset to start consuming from.- Parameters:
offset
- offset- Returns:
- stream options
-
offset
A point in time to start consuming from.Be aware consumers can receive messages published a bit before the specified timestamp.
- Parameters:
timestamp
- the timestamp- Returns:
- stream options
-
offset
The offset to start consuming from.- Parameters:
specification
- offset specification- Returns:
- stream options
- See Also:
-
offset
The offset to start consuming from as an interval string value.Valid units are Y, M, D, h, m, s. Examples:
7D
(7 days),12h
(12 hours).- Parameters:
interval
- the interval- Returns:
- stream options
- See Also:
-
filterValues
Filter values for stream filtering.This a different filtering mechanism from AMQP filter expressions. Both mechanisms can be used together.
- Parameters:
values
- filter values- Returns:
- stream options
- See Also:
-
filterMatchUnfiltered
Whether messages without a filter value should be sent.Default is
false
(messages without a filter value are not sent).This a different filtering mechanism from AMQP filter expressions. Both mechanisms can be used together.
- Parameters:
matchUnfiltered
- true to send messages without a filter value- Returns:
- stream options
- See Also:
-
filter
ConsumerBuilder.StreamFilterOptions filter()Options for AMQP filter expressions.Requires RabbitMQ 4.1 or more.
This a different filtering mechanism from stream filtering. Both mechanisms can be used together.
- Returns:
- the filter options
- See Also:
-
builder
ConsumerBuilder builder()Return the consumer builder.- Returns:
- the consumer builder
-