Document max-rows-per-poll for the JDBC Gateway

StackOverflow https://stackoverflow.com/questions/45611037
This commit is contained in:
Artem Bilan
2017-08-10 16:52:44 -04:00
parent a3160f80f6
commit 4fd32d2bd4
2 changed files with 9 additions and 7 deletions

View File

@@ -92,16 +92,12 @@ public class JdbcOutboundGateway extends AbstractReplyProducingMessageHandler im
/**
* The maximum number of rows to pull out of the query results per poll (if
* greater than zero, otherwise all rows will be packed into the outgoing
* message).
*
* greater than zero, otherwise all rows will be packed into the outgoing message).
* The value is ultimately set on the underlying {@link JdbcPollingChannelAdapter}.
* If not specified this value will default to <code>zero</code>.
*
* If not specified this value will default to {@code 1}.
* This parameter is only applicable if a selectQuery was provided. Null values
* are not permitted.
*
* @param maxRowsPerPoll Must not be null.
* @param maxRowsPerPoll the number of rows to select. Must not be null.
*/
public void setMaxRowsPerPoll(Integer maxRowsPerPoll) {
Assert.notNull(maxRowsPerPoll, "MaxRowsPerPoll must not be null.");