@MediaType(value="application/json") @DisplayName(value="On New Email") @Alias(value="on-new-email-listener") @ClusterSupport(value=NOT_SUPPORTED) @Summary(value="Enters the flow whenever a new email is received.") @MetadataScope(outputResolver=GmailusersmessageslistOutputMetadataResolver.class) public class OnNewEmailSource extends org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> implements SourceComponent<org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
OnNewEmailSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> context,
GmailMessage gmailMessage,
GmailWatermark watermark,
Optional<com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> httpResponseAttributes) |
protected void |
doStart() |
protected void |
doStop() |
String |
getId() |
void |
onConnectionException(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> context,
org.mule.runtime.api.connection.ConnectionException exception) |
void |
onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> pollContext) |
onStart, onStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHttpRequestprotected void doStart()
throws org.mule.runtime.api.exception.MuleException
doStart in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>org.mule.runtime.api.exception.MuleExceptionprotected void doStop()
doStop in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> pollContext)
poll in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>public void onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> result, org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
onRejectedItem in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>public void onConnectionException(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> context, org.mule.runtime.api.connection.ConnectionException exception)
onConnectionException in interface SourceComponent<org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>public void accept(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> context, GmailMessage gmailMessage, GmailWatermark watermark, Optional<com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> httpResponseAttributes)
accept in interface SourceComponent<org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>public String getId()
getId in interface SourceComponent<org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>>Copyright © 2023 MuleSoft, Inc.. All rights reserved.