From 8cf1dae6e849ad1443e43e26e3248eefab91115c Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 25 Sep 2019 09:47:00 -0400 Subject: [PATCH] GH-1809 Add docs for 'partitionKeyExtractorName' and 'partitionSelectorName' Resolves #1809 --- docs/src/main/asciidoc/spring-cloud-stream.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-stream.adoc b/docs/src/main/asciidoc/spring-cloud-stream.adoc index e9a46d181..16957c491 100644 --- a/docs/src/main/asciidoc/spring-cloud-stream.adoc +++ b/docs/src/main/asciidoc/spring-cloud-stream.adoc @@ -1713,6 +1713,20 @@ If set, outbound data on this channel is partitioned. `partitionCount` must be s See `<>`. + Default: null. + +partitionKeyExtractorName:: +The name of the bean that implements `PartitionKeyExtractorStrategy`. Used to extract a key used to compute +the partition id (see 'partitionSelector*'). Mutually exclusive with 'partitionKeyExpression'. ++ +Default: null. + +partitionSelectorName:: +The name of the bean that implements `PartitionSelectorStrategy`. Used to determine partition id based +on partition key (see 'partitionKeyExtractor*'). Mutually exclusive with 'partitionSelectorExpression'. ++ +Default: null. + + partitionSelectorExpression:: A SpEL expression for customizing partition selection. If neither is set, the partition is selected as the `hashCode(key) % partitionCount`, where `key` is computed through either `partitionKeyExpression`.