|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.streaming.PagingDelegate<T>
org.mule.streaming.PagingDelegateWrapper<T>
public class PagingDelegateWrapper<T>
This implementation of PagingDelegate takes care of enforcing some basic
behaviour of the delegate contract so that users don't have to. Concerns such as
logging, auto closing the delegate if the consumer has been fully consumed, etc
are addressed here
| Constructor Summary | |
|---|---|
PagingDelegateWrapper(PagingDelegate<T> wrapped)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PagingDelegateWrapper(PagingDelegate<T> wrapped)
| Method Detail |
|---|
public List<T> getPage()
null or an
empty list, then it means no more items are available This implementation already takes care of returning
null if the delegate is closed or if the obtained page is
null or empty. It delegates into the wrapped instance to actually
obtain the page.
getPage in class PagingDelegate<T>null or an empty list, then
it means no more items are available
public void close()
throws MuleException
MuleException - if an exception occurs closing the resourcepublic int getTotalResults()
getTotalResults in class PagingDelegate<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||