public abstract class AbstractDevkitBasedPageableMessageProcessor extends DevkitBasedMessageProcessor
PagingDelegate
and returning a ConsumerIterator
accordinglyflowConstruct, moduleObject, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
AbstractDevkitBasedPageableMessageProcessor(String operationName) |
| Modifier and Type | Method and Description |
|---|---|
protected MuleEvent |
doProcess(MuleEvent event)
This method sets the message payload to an instance of
ConsumerIterator configured
accordingly to the configured outputUnit and the
PagingDelegate obtained by invoking getPagingDelegate(org.mule.api.MuleEvent, org.mule.streaming.PagingConfiguration) |
protected abstract PagingDelegate<?> |
getPagingDelegate(MuleEvent event,
PagingConfiguration pagingConfiguration)
Implement this method to return the
PagingDelegate
to be used when paging. |
void |
setFetchSize(String fetchSize) |
dispose, findOrCreate, getAccessTokenId, getFlowConstruct, getMuleContext, initialise, overwritePayload, process, setAccessTokenId, setFlowConstruct, setModuleObject, setMuleContext, start, stopcomputeClassHierarchy, evaluate, evaluateAndTransform, evaluateAndTransform, getAccessTokenId, isAssignableFrom, isList, isListClass, isMap, isMapClass, transform, transform, transformpublic AbstractDevkitBasedPageableMessageProcessor(String operationName)
protected final MuleEvent doProcess(MuleEvent event) throws Exception
ConsumerIterator configured
accordingly to the configured outputUnit and the
PagingDelegate obtained by invoking getPagingDelegate(org.mule.api.MuleEvent, org.mule.streaming.PagingConfiguration)doProcess in class DevkitBasedMessageProcessorevent - the mule eventMuleEventIllegalArgumentException - is firstPage is lower than zero or if
lastPage is lower than zero and firstPage or if fetchSize is lower
than zeroExceptionprotected abstract PagingDelegate<?> getPagingDelegate(MuleEvent event, PagingConfiguration pagingConfiguration) throws Exception
PagingDelegate
to be used when paging. This method should never return nullevent - the current mule eventpagingConfiguration - paging configuration parametersPagingDelegateExceptionpublic void setFetchSize(String fetchSize)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.