public static interface ProducerBuilder.RoutingConfiguration
This is an experimental API, subject to change.
| Modifier and Type | Method and Description |
|---|---|
ProducerBuilder.RoutingConfiguration |
hash()
Enable the "hash" routing strategy (the default).
|
ProducerBuilder.RoutingConfiguration |
hash(ToIntFunction<String> hash)
Enable the "hash" routing strategy with a specific hash algorithm.
|
ProducerBuilder.RoutingConfiguration |
key()
Enable the "key" routing strategy.
|
ProducerBuilder |
producerBuilder()
Go back to the producer builder.
|
ProducerBuilder.RoutingConfiguration |
strategy(RoutingStrategy routingStrategy)
Set the routing strategy to use.
|
ProducerBuilder.RoutingConfiguration hash()
The default hash algorithm is 32-bit MurmurHash3.
ProducerBuilder.RoutingConfiguration hash(ToIntFunction<String> hash)
hash - ProducerBuilder.RoutingConfiguration key()
It consists in using the "route" command of the RabbitMQ Stream protocol to determine the streams to send a message to.
ProducerBuilder.RoutingConfiguration strategy(RoutingStrategy routingStrategy)
Providing the routing strategy provides control over the streams a message is routed to (routing key extraction logic if relevant and destination(s) decision).
routingStrategy - ProducerBuilder producerBuilder()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.