T
- The type returned by the client call that returns the pages.public abstract class BasicPagingDelegate<T> extends org.mule.streaming.ProviderAwarePagingDelegate<T,BoxConnector>
Modifier and Type | Field and Description |
---|---|
protected Integer |
offset
The offset required in paginated calls.
|
Modifier | Constructor and Description |
---|---|
protected |
BasicPagingDelegate(org.mule.streaming.PagingConfiguration pagingConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract List<T> |
doCall(BoxConnector provider)
Returns a list of elements corresponding to a page.
|
List<T> |
getPage(BoxConnector provider) |
protected Integer |
getPageSize() |
int |
getTotalResults(BoxConnector provider) |
protected void |
setTotalResults(Integer totalResults) |
protected Integer offset
protected BasicPagingDelegate(org.mule.streaming.PagingConfiguration pagingConfiguration)
public List<T> getPage(BoxConnector provider) throws Exception
getPage
in class org.mule.streaming.ProviderAwarePagingDelegate<T,BoxConnector>
Exception
protected abstract List<T> doCall(BoxConnector provider)
provider
- The connector.public void close() throws org.mule.api.MuleException
org.mule.api.MuleException
public int getTotalResults(BoxConnector provider) throws Exception
getTotalResults
in class org.mule.streaming.ProviderAwarePagingDelegate<T,BoxConnector>
Exception
protected void setTotalResults(Integer totalResults)
protected Integer getPageSize()
Copyright © 2010–2017. All rights reserved.