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