T
- the type of the data to be returnedP
- the type of the provider generating the datapublic abstract class ProviderAwarePagingDelegate<T,P> extends Object implements Closeable
PagingDelegate
but aware of the actual
component that provides the data being pagedConstructor and Description |
---|
ProviderAwarePagingDelegate() |
Modifier and Type | Method and Description |
---|---|
abstract List<T> |
getPage(P provider)
Returns the next page of items.
|
abstract int |
getTotalResults(P provider)
returns the total amount of items in the non-paged result set.
|
public abstract List<T> getPage(P provider) throws Exception
null
or an
empty list, then it means no more items are availableprovider
- The provider to be used to do the query. You can assume this provider is already properly initialisednull
or an empty list, then
it means no more items are availableException
public abstract int getTotalResults(P provider) throws Exception
provider
- The provider to be used to do the query. You can assume this provider is already properly initialisedException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.