public class GmailPagingProcessor<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AFTER_REGEX |
protected static String |
BEFORE_REGEX |
protected static String |
GMAIL_API |
protected static org.slf4j.Logger |
logger |
protected static String |
MESSAGES_PATH |
protected static String |
MULTI_SPACE_REGEX |
| Constructor and Description |
|---|
GmailPagingProcessor(ExtendedOAuthRestConnection connection,
GmailConfiguration config,
SourceComponent<T> sourceComponent,
String after,
String query) |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareMessageIds(String itemMessageId,
String watermarkMessageId) |
Optional<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> |
execute(T pollContext,
com.mulesoft.connectivity.rest.commons.internal.util.RestRequestBuilder restRequestBuilder) |
void |
handleRejectItem(InputStream resultOutputStream) |
void |
poll(T context,
GmailWatermark watermark) |
String |
prepareQuery(String query) |
protected static final org.slf4j.Logger logger
protected static final String GMAIL_API
protected static final String MESSAGES_PATH
protected static final String BEFORE_REGEX
protected static final String AFTER_REGEX
protected static final String MULTI_SPACE_REGEX
public GmailPagingProcessor(ExtendedOAuthRestConnection connection, GmailConfiguration config, SourceComponent<T> sourceComponent, String after, String query)
public void poll(T context, GmailWatermark watermark)
public Optional<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> execute(T pollContext, com.mulesoft.connectivity.rest.commons.internal.util.RestRequestBuilder restRequestBuilder)
public void handleRejectItem(InputStream resultOutputStream)
Copyright © 2023 MuleSoft, Inc.. All rights reserved.