public class BatchPageProvider<T> extends Object implements org.mule.runtime.extension.api.runtime.streaming.PagingProvider<ExtendedOAuthRestConnection,org.mule.runtime.extension.api.runtime.operation.Result<T,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>
| Modifier and Type | Field and Description |
|---|---|
protected GmailConfiguration |
config |
| Constructor and Description |
|---|
BatchPageProvider(GmailConfiguration config,
int batchSize,
List<org.mule.runtime.http.api.domain.message.request.HttpRequest> requests,
Class<T> mappedClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(ExtendedOAuthRestConnection connection) |
List<org.mule.runtime.extension.api.runtime.operation.Result<T,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> |
getPage(ExtendedOAuthRestConnection connection) |
Optional<Integer> |
getTotalResults(ExtendedOAuthRestConnection connection) |
boolean |
hasNext() |
protected final GmailConfiguration config
public BatchPageProvider(GmailConfiguration config, int batchSize, List<org.mule.runtime.http.api.domain.message.request.HttpRequest> requests, Class<T> mappedClass)
public List<org.mule.runtime.extension.api.runtime.operation.Result<T,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> getPage(ExtendedOAuthRestConnection connection)
getPage in interface org.mule.runtime.extension.api.runtime.streaming.PagingProvider<ExtendedOAuthRestConnection,org.mule.runtime.extension.api.runtime.operation.Result<T,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>public Optional<Integer> getTotalResults(ExtendedOAuthRestConnection connection)
getTotalResults in interface org.mule.runtime.extension.api.runtime.streaming.PagingProvider<ExtendedOAuthRestConnection,org.mule.runtime.extension.api.runtime.operation.Result<T,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>public void close(ExtendedOAuthRestConnection connection) throws org.mule.runtime.api.exception.MuleException
close in interface org.mule.runtime.extension.api.runtime.streaming.PagingProvider<ExtendedOAuthRestConnection,org.mule.runtime.extension.api.runtime.operation.Result<T,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>org.mule.runtime.api.exception.MuleExceptionpublic boolean hasNext()
Copyright © 2023 MuleSoft, Inc.. All rights reserved.