GH-1535 Added support for Binding auto-startup

Resolves #1535
This commit is contained in:
Oleg Zhurakousky
2019-01-22 18:16:07 +01:00
parent 5d8d968ead
commit 44f8ae33f2
5 changed files with 77 additions and 2 deletions

View File

@@ -1404,6 +1404,10 @@ The following binding properties are available for input bindings only and must
Default values can be set by using the `spring.cloud.stream.default.consumer` prefix (for example, `spring.cloud.stream.default.consumer.headerMode=none`).
autoStartup::
Signals if this consumer needs to be started automatically
+
Default: `true`.
concurrency::
The concurrency of the inbound consumer.
+
@@ -1478,6 +1482,10 @@ The following binding properties are available for output bindings only and must
Default values can be set by using the prefix `spring.cloud.stream.default.producer` (for example, `spring.cloud.stream.default.producer.partitionKeyExpression=payload.id`).
autoStartup::
Signals if this consumer needs to be started automatically
+
Default: `true`.
partitionKeyExpression::
A SpEL expression that determines how to partition outbound data.
If set, or if `partitionKeyExtractorClass` is set, outbound data on this channel is partitioned. `partitionCount` must be set to a value greater than 1 to be effective.