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 c8b79eb490
commit 4762bfbfe5
5 changed files with 77 additions and 2 deletions

View File

@@ -1530,6 +1530,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.
+
@@ -1604,6 +1608,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.