T - the type of the elements returned by the PagingProvider.public final class PagingProviderProducer<T> extends Object implements Producer<List<T>>
Producer that uses an instance of PagingProvider to get its results.| Modifier and Type | Field and Description |
|---|---|
static String |
COULD_NOT_OBTAIN_A_CONNECTION |
| Constructor and Description |
|---|
PagingProviderProducer(org.mule.runtime.extension.api.runtime.streaming.PagingProvider<Object,T> delegate,
org.mule.runtime.extension.api.runtime.config.ConfigurationInstance config,
ExecutionContextAdapter executionContext,
ExtensionConnectionSupplier connectionSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the delegate
|
int |
getSize()
Returns the total amount of available results informed by delegate
|
List<T> |
produce()
Asks the delegate for the next page
|
public static final String COULD_NOT_OBTAIN_A_CONNECTION
public PagingProviderProducer(org.mule.runtime.extension.api.runtime.streaming.PagingProvider<Object,T> delegate, org.mule.runtime.extension.api.runtime.config.ConfigurationInstance config, ExecutionContextAdapter executionContext, ExtensionConnectionSupplier connectionSupplier)
public int getSize()
getSize in interface org.mule.runtime.api.streaming.HasSizepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.