@Summary(value="Listen for messages on selected subscription")
@DisplayName(value="On message listener")
@Alias(value="message-listener")
@MediaType(value="*/*")
@ClusterSupport(value=DEFAULT_ALL_NODES)
@BackPressure(defaultMode=WAIT,
supportedModes={WAIT,DROP,FAIL})
@MetadataScope(outputResolver=MessageListenerMetadataResolver.class,
attributesResolver=MessageListenerMetadataResolver.class)
public class MessageListenerSource
extends org.mule.runtime.extension.api.runtime.source.Source<InputStream,Map<String,String>>
| Constructor and Description |
|---|
MessageListenerSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
onBackPressure(org.mule.runtime.extension.api.runtime.source.BackPressureContext ctx,
org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback completionCallback) |
void |
onError(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext sourceCallbackContext) |
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,Map<String,String>> sourceCallback) |
void |
onStop() |
void |
onSuccess(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext sourceCallbackContext) |
void |
onTerminate(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext sourceCallbackContext) |
public static final String CONSUMER
public void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,Map<String,String>> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,Map<String,String>>org.mule.runtime.api.exception.MuleExceptionpublic void onStop()
onStop in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,Map<String,String>>@OnError public void onError(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext sourceCallbackContext)
@OnSuccess public void onSuccess(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext sourceCallbackContext)
@OnBackPressure
public void onBackPressure(org.mule.runtime.extension.api.runtime.source.BackPressureContext ctx,
org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback completionCallback)
@OnTerminate public void onTerminate(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext sourceCallbackContext)
Copyright © 2021 MuleSoft, Inc.. All rights reserved.