Package com.rabbitmq.stream
Interface RoutingStrategy
-
public interface RoutingStrategy
Strategy to route outbound messages to appropriate streams.This is an experimental API, subject to change.
Used for super streams (partitioned stream).
- See Also:
ProducerBuilder.routing(Function)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RoutingStrategy.Metadata
Metadata on the super stream.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
route(Message message, RoutingStrategy.Metadata metadata)
Where to route a message.
-
-
-
Method Detail
-
route
List<String> route(Message message, RoutingStrategy.Metadata metadata)
Where to route a message.- Parameters:
message
-metadata
-- Returns:
- the list of streams to route messages to
-
-