public class GetPaginatedOperation<CONFIG extends HttpConnectorConfig,CONNECTION extends ConnectorHttpConnection,SERVICE extends HttpClientService<CONFIG,CONNECTION>>
extends com.mulesoft.connectors.commons.template.operation.BlockingConnectorPagedOperation<CONFIG,CONNECTION,SERVICE,com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext>
| Modifier | Constructor and Description |
|---|---|
protected |
GetPaginatedOperation(org.mule.commons.atlantic.lambda.function.BiFunction<CONFIG,CONNECTION,SERVICE> serviceConstructorCall,
org.mule.runtime.extension.api.error.ErrorTypeDefinition<?> unexpectedErrorValue,
org.mule.runtime.extension.api.error.ErrorTypeDefinition<?> transformationErrorValue,
Transformer<InputStream,Map<String,Object>> inputStreamToMapTransformer) |
| Modifier and Type | Method and Description |
|---|---|
protected <RESULT> List<RESULT> |
getPage(org.mule.commons.atlantic.execution.builder.factory.InstanceExecutionBuilderFactory<SERVICE,RESULT> executionBuilder,
com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext pagingContext) |
protected <RESULT> Optional<Integer> |
getTotalResults(org.mule.commons.atlantic.execution.builder.factory.InstanceExecutionBuilderFactory<SERVICE,RESULT> executionBuilder,
com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext pagingContext) |
createConnectionProviderprotected GetPaginatedOperation(org.mule.commons.atlantic.lambda.function.BiFunction<CONFIG,CONNECTION,SERVICE> serviceConstructorCall, org.mule.runtime.extension.api.error.ErrorTypeDefinition<?> unexpectedErrorValue, org.mule.runtime.extension.api.error.ErrorTypeDefinition<?> transformationErrorValue, Transformer<InputStream,Map<String,Object>> inputStreamToMapTransformer)
protected <RESULT> List<RESULT> getPage(org.mule.commons.atlantic.execution.builder.factory.InstanceExecutionBuilderFactory<SERVICE,RESULT> executionBuilder, com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext pagingContext)
getPage in class com.mulesoft.connectors.commons.template.operation.pagination.ConnectorPagedOperation<CONFIG extends HttpConnectorConfig,CONNECTION extends ConnectorHttpConnection,SERVICE extends HttpClientService<CONFIG,CONNECTION>,com.mulesoft.connectors.commons.template.operation.factory.BlockingExecutionBuilderFactory<CONFIG extends HttpConnectorConfig,CONNECTION extends ConnectorHttpConnection,SERVICE extends HttpClientService<CONFIG,CONNECTION>>,com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext>protected <RESULT> Optional<Integer> getTotalResults(org.mule.commons.atlantic.execution.builder.factory.InstanceExecutionBuilderFactory<SERVICE,RESULT> executionBuilder, com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext pagingContext)
getTotalResults in class com.mulesoft.connectors.commons.template.operation.pagination.ConnectorPagedOperation<CONFIG extends HttpConnectorConfig,CONNECTION extends ConnectorHttpConnection,SERVICE extends HttpClientService<CONFIG,CONNECTION>,com.mulesoft.connectors.commons.template.operation.factory.BlockingExecutionBuilderFactory<CONFIG extends HttpConnectorConfig,CONNECTION extends ConnectorHttpConnection,SERVICE extends HttpClientService<CONFIG,CONNECTION>>,com.mulesoft.connectors.commons.template.operation.pagination.OffsetPaginationContext>Copyright © 2019. All rights reserved.