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.| 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
|
Throwable |
getCause(Throwable t)
Utility method to obtain the failure cause when an exception is thrown using the
PagingProviderProducer |
int |
getSize()
Returns the total amount of available results informed by delegate
|
List<T> |
produce()
Asks the delegate for the next page
|
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()
close in interface Closeableclose in interface AutoCloseablepublic Throwable getCause(Throwable t)
PagingProviderProducert - Throwable to handleCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.