Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@ public final class StreamBatchMerger extends DefaultStreamPipe<StreamReceiver> {
public StreamBatchMerger() {
}

/**
* Sets the number of records that should be merged into a batch.
* <p>
* The default batch size is 1, wich means that no records are merged.
* <p>
* This parameter must not be changed during processing.
*
* @param batchSize the number of records that should be merged.
*/
public void setBatchSize(final int batchSize) {
// NOTE: ConfigurableClass.convertValue() doesn't support long.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this note helpful?

setBatchSize((long) batchSize);
}

/**
* Sets the number of records that should be merged into a batch.
* <p>
Expand Down
Loading