@MediaType(value="*/*",
strict=false)
@Alias(value="MessageListener")
@DisplayName(value="Message Listener")
@MetadataScope(keysResolver=MessageListenerMetadataKeyResolver.class,
outputResolver=MessageListenerOutputTypeResolver.class,
attributesResolver=MessageListenerOutputTypeResolver.class)
public class AsyncMessageListenerSource
extends org.mule.runtime.extension.api.runtime.source.Source<InputStream,AsyncMessageAttributes>
| Constructor and Description |
|---|
AsyncMessageListenerSource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getChannelName() |
RoutingKey |
getKey() |
Set<String> |
getServers() |
void |
onError(org.mule.runtime.api.message.Error error,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
When mule-flow execution ends successfully, the connector's source is completed with the Error
|
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,AsyncMessageAttributes> sourceCallback) |
void |
onStop()
Unregister the source callback from
SourceCallbackRegistry |
void |
onSuccess(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
When mule-flow execution ends successfully, the connector's source is completed
|
public RoutingKey getKey()
public String getChannelName()
public void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,AsyncMessageAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,AsyncMessageAttributes>org.mule.runtime.api.exception.MuleExceptionpublic void onStop()
SourceCallbackRegistryonStop in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,AsyncMessageAttributes>@OnSuccess public void onSuccess(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
callbackContext - @OnError
public void onError(org.mule.runtime.api.message.Error error,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
error - callbackContext - Copyright © 2025 MuleSoft, Inc.. All rights reserved.