public class ManagedPagingDelegateAdapter<T> extends PagingDelegate<T>
ProviderAwarePagingDelegate
into
a PagingDelegate
Allows executing paging operations in a managed context defined by an owning ProcessTemplate
Constructor and Description |
---|
ManagedPagingDelegateAdapter(ProviderAwarePagingDelegate<T,Object> delegate,
ProcessTemplate<Object,Object> processTemplate,
List<Class<? extends Exception>> managedExceptions,
boolean isProtected,
MessageProcessor originalMessageProcessor,
MuleEvent originalEvent) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the resource.
|
List<T> |
getPage()
Returns the next page of items.
|
int |
getTotalResults()
returns the total amount of items in the unpaged resultset.
|
public ManagedPagingDelegateAdapter(ProviderAwarePagingDelegate<T,Object> delegate, ProcessTemplate<Object,Object> processTemplate, List<Class<? extends Exception>> managedExceptions, boolean isProtected, MessageProcessor originalMessageProcessor, MuleEvent originalEvent)
public List<T> getPage()
null
or an
empty list, then it means no more items are availablegetPage
in class PagingDelegate<T>
null
or an empty list, then
it means no more items are availablepublic int getTotalResults()
PagingDelegate
getTotalResults
in class PagingDelegate<T>
public void close() throws MuleException
Closeable
MuleException
- if an exception occurs closing the resourceCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.