public static class ContinuousPagingOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContinuousPagingOptions |
build()
Returns the options specified by this builder.
|
ContinuousPagingOptions.Builder |
withMaxPages(int maxPages)
Sets the maximum number of pages to retrieve.
|
ContinuousPagingOptions.Builder |
withMaxPagesPerSecond(int maxPagesPerSecond)
Sets the maximum number of pages per second.
|
ContinuousPagingOptions.Builder |
withPageSize(int pageSize,
ContinuousPagingOptions.PageUnit pageUnit)
Sets the size of the page, in the given unit.
|
public ContinuousPagingOptions.Builder withPageSize(int pageSize, ContinuousPagingOptions.PageUnit pageUnit)
If this method is not called, the page size defaults to 5000 rows.
public ContinuousPagingOptions.Builder withMaxPages(int maxPages)
If this method is not called, the maximum defaults to 0, which means retrieve all pages available.
public ContinuousPagingOptions.Builder withMaxPagesPerSecond(int maxPagesPerSecond)
If this method is not called, the rate is set to zero to indicate no limit.
public ContinuousPagingOptions build()
Copyright © 2012–2018. All rights reserved.