org.mule.streaming.processor
Class ManagedPagingDelegateAdapter<T>

java.lang.Object
  extended by org.mule.streaming.PagingDelegate<T>
      extended by org.mule.streaming.processor.ManagedPagingDelegateAdapter<T>
All Implemented Interfaces:
Closeable

public class ManagedPagingDelegateAdapter<T>
extends PagingDelegate<T>

Adapter class to adapt a ProviderAwarePagingDelegate into a PagingDelegate Allows executing paging operations in a managed context defined by an owning ProcessTemplate


Constructor Summary
ManagedPagingDelegateAdapter(ProviderAwarePagingDelegate<T,Object> delegate, ProcessTemplate<Object,Object> processTemplate, List<Class<? extends Exception>> managedExceptions, boolean isProtected, MessageProcessor originalMessageProcessor, MuleEvent originalEvent)
           
 
Method Summary
 void close()
           
 List<T> getPage()
          
 int getTotalResults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedPagingDelegateAdapter

public ManagedPagingDelegateAdapter(ProviderAwarePagingDelegate<T,Object> delegate,
                                    ProcessTemplate<Object,Object> processTemplate,
                                    List<Class<? extends Exception>> managedExceptions,
                                    boolean isProtected,
                                    MessageProcessor originalMessageProcessor,
                                    MuleEvent originalEvent)
Method Detail

getPage

public List<T> getPage()

Specified by:
getPage in class PagingDelegate<T>

getTotalResults

public int getTotalResults()
Specified by:
getTotalResults in class PagingDelegate<T>

close

public void close()
           throws MuleException
Throws:
MuleException


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.