public abstract class PagingDelegate<T> extends Object implements Closeable
Closeable capable of consuming a data feed in pages.
Implementing this class does not guarantee thread safeness. Check each particular
implementation for information about that| Constructor and Description |
|---|
PagingDelegate() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<T> |
getPage()
Returns the next page of items.
|
abstract int |
getTotalResults()
returns the total amount of items in the unpaged resultset.
|
public abstract List<T> getPage()
null or an
empty list, then it means no more items are availablenull or an empty list, then
it means no more items are availablepublic abstract int getTotalResults()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.