Polishing for the FileWritingMessageHandler

* Fix typos in docs
* Add `om.google.code.findbugs:jsr305` to avoid warnings like
`Cannot find annotation`
This commit is contained in:
Artem Bilan
2018-07-24 15:49:22 -04:00
parent 9ac0746f19
commit 44b7df94c1
5 changed files with 81 additions and 91 deletions

View File

@@ -616,8 +616,8 @@ outbound gateway by using the XML namespace.
Starting with version 4.3, you can specify the buffer size to use when writing files.
Starting with version 5.1, you can provide a `BiConsumer<File, Message<?>>` `newFileCallback` which will be triggered if you are using `FileExistsMode.APPEND` or `FileExistsMode.APPEND_NO_FLUSH` and a new file has to be created.
This callback receives the newly created file and the message which triggered it.
Starting with version 5.1, you can provide a `BiConsumer<File, Message<?>>` `newFileCallback` which is triggered if you use `FileExistsMode.APPEND` or `FileExistsMode.APPEND_NO_FLUSH` and a new file has to be created.
This callback receives a newly created file and the message which triggered it.
This callback could be used to write a CSV header defined in the message header, for an example.
[[file-writing-file-names]]

View File

@@ -13,7 +13,7 @@ The following components are new in 5.1:
* <<x5.1-AmqpDedicatedChannelAdvice>>
<<x5.1-AmqpDedicatedChannelAdvice>>
[[x5.1-AmqpDedicatedChannelAdvice]]
==== `AmqpDedicatedChannelAdvice`
See <<amqp-strict-ordering>>.
@@ -69,7 +69,7 @@ See <<json-transformers>> for more information.
Starting with version 5.0.5, generated bean names for the components in an `IntegrationFlow` include the flow bean name, followed by a dot, as a prefix. For example, if a flow bean were named `flowBean`, a generated bean might be named `flowBean.generatedBean`.
See "`<<java-dsl-flows>>`" for more information.
See <<java-dsl-flows>> for more information.
[[x5.1-aggregator]]
==== Aggregator Changes
@@ -77,22 +77,24 @@ See "`<<java-dsl-flows>>`" for more information.
If the `groupTimeout` is evaluated to a negative value, an aggregator now expires the group immediately.
Only `null` is considered as a signal to do nothing for the current message.
See "`<<aggregator>>`" for more information.
See <<aggregator>> for more information.
[[x5.1-publisher]]
==== @Publisher annotation changes
Starting with version 5.1, you must explicitly turn on the `@Publisher` AOP functionality by using `@EnablePublisher` or by using the `<int:enable-publisher>` child element on `<int:annotation-config>`.
See "`<<publisher-annotation>>`" for more information.
See <<publisher-annotation>> for more information.
[[x5.1-file-writing-message-handler]]
=== `FileWritingMessageHandler`: New file callback
[[x5.1-files]]
=== Files Changes
If you are using `FileExistsMode.APPEND` or `FileExistsMode.APPEND_NO_FLUSH` you can provide a `newFileCallback` that will be called when creating a new file.
This callback receives the newly created file and the message that triggered the callback.
This could be used to write a CSV header, for an example.
See <<files>> for more information.
[[x5.1-amqp]]
=== AMQP Changes
@@ -107,7 +109,7 @@ See <<amqp-content-type>> for more information.
A confusing `max-rows-per-poll` property on the JDBC Inbound Channel Adapter and JDBC Outbound Gateway has been deprecated in favor of the newly introduced `max-rows` property.
See "`<<jdbc>>`" for more information.
See <<jdbc>> for more information.
[[x5.1-ftp-sftp]]
=== FTP and SFTP Changes
@@ -122,7 +124,8 @@ See <<ftp-streaming>> and <<sftp-streaming>> for more information.
In addition, the synchronizers for inbound channel adapters can now be provided with a `Comparator`.
This is useful when using `maxFetchSize` to limit the files retrieved.
==== Twitter Support
[[x5.1-twitter]]
=== Twitter Support
Since the Spring Social project has moved to https://spring.io/blog/2018/07/03/spring-social-end-of-life-announcement[end of life status], Twitter support in Spring Integration has been moved to the Extensions project.
See https://github.com/spring-projects/spring-integration-extensions/tree/master/spring-integration-social-twitter[Spring Integration Social Twitter] for more information.