INT-3705: Improve Messaging Annotations handling

JIRA: https://jira.spring.io/browse/INT-3705

* Add validation for annotation attributes which must be populated directly on the `MessageHandler` `@Bean` using setters
* Add `sendTimeout()` annotation attribute for all Messaging Annotations
* Remove `DEFAULT_SEND_TIMEOUT = 1000L` from `AbstractCorrelatingMessageHandler` to make its component consistent with all other
`AbstractMessageProducingHandler` implementation.
* Fix XSD docs and Reference Manual to say that default `send-timeout` for `AbstractMessageProducingHandler` components is `-1`, not `one second`
* Make all Messaging Annotations attributes as `String` to allow to configure through the Property Placeholder options
* Fix a couple of typos

Polishing
This commit is contained in:
Artem Bilan
2015-04-21 20:05:23 +03:00
committed by Gary Russell
parent 5bf4d97b38
commit 183941ec07
26 changed files with 396 additions and 112 deletions

View File

@@ -328,7 +328,7 @@ _Default - 'false'_.
<9> The timeout interval to wait when sending a reply `Message` to the `output-channel` or `discard-channel`.
By default the send will block for one second.
Defaults to `-1` - blocking indefinitely.
It is applied only if the output channel has some 'sending' limitations, e.g.
`QueueChannel` with a fixed 'capacity'.
In this case a `MessageDeliveryException` is thrown.

View File

@@ -93,7 +93,7 @@ _Optional_.
<7> Specify the maximum amount of time in milliseconds to wait when sending a reply Message to the output channel.
By default the send will block for one second.
Defaults to `-1` - blocking indefinitely.
Attribute is not available inside a `Chain` element.
_Optional_.
@@ -174,7 +174,7 @@ _Optional_.
<8> Specify the maximum amount of time in milliseconds to wait when sending a reply Message to the output channel.
By default the send will block for one second.
Defaults to `-1` - blocking indefinitely.
Attribute is not available inside a `Chain` element.
_Optional_.

View File

@@ -83,7 +83,7 @@ See <<reaper>>.
<8> The timeout interval to wait when sending a reply `Message` to the `output-channel` or `discard-channel`.
By default the send will block for one second.
Defaults to `-1` - blocking indefinitely.
It is applied only if the output channel has some 'sending' limitations, e.g.
`QueueChannel` with a fixed 'capacity'.
In this case a `MessageDeliveryException` is thrown.

View File

@@ -77,7 +77,7 @@ This attribute can contain `udp` or `tcp`; it defaults to `udp`.
----
A `UDP` adapter that sends messages to channel `fromSyslog`.
It also shows the `SmartLifecyle` attributes `auto-startup` and `phase`.
It also shows the `SmartLifecycle` attributes `auto-startup` and `phase`.
It has a reference to a custom `org.springframework.integration.syslog.MessageConverter` with id `converter` and an `error-channel`.
Also notice the `udp-attributes` child element.
You can set various UDP attributes here, as defined in <<ip-ib-adapter-attributes>>.