T
- the type of items fetchedpublic abstract class AbstractPageFetcher<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPageFetcher.Page<T>
A fetched page.
|
Modifier and Type | Field and Description |
---|---|
protected long |
maxNumItems |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPageFetcher(long maxNumItems) |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractPageFetcher.Page<T> |
fetchPage(long skipCount)
Fetches the given page from the server.
|
void |
setMaxNumItems(int maxNumItems) |
protected abstract AbstractPageFetcher.Page<T> fetchPage(long skipCount)
skipCount
- initial offset where to start fetchingpublic void setMaxNumItems(int maxNumItems)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.