@Alias(value="listener") @EmitsResponse @MetadataScope(outputResolver=AmqpOutputResolver.class) @BackPressure(defaultMode=WAIT, supportedModes=WAIT) @MediaType(value="*/*", strict=false) public class AmqpListener extends org.mule.runtime.extension.api.runtime.source.Source<InputStream,AmqpAttributes>
AMQP.Queues, allows to listen for incoming messages.| Modifier and Type | Field and Description |
|---|---|
protected AmqpConfig |
config |
protected org.mule.runtime.api.connection.ConnectionProvider<AmqpTransactionalConnection> |
connectionProvider |
| Constructor and Description |
|---|
AmqpListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRecoverStrategy(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext,
com.rabbitmq.client.Channel channel) |
protected void |
configureConnection(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,AmqpAttributes> sourceCallback) |
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.api.message.Error error,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,AmqpAttributes> sourceCallback) |
void |
onStop() |
void |
onSuccess(AmqpResponseMessageBuilder messageBuilder,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
onTerminate(org.mule.runtime.extension.api.runtime.source.SourceResult sourceResult) |
@Connection protected org.mule.runtime.api.connection.ConnectionProvider<AmqpTransactionalConnection> connectionProvider
@Config protected AmqpConfig config
public void onStart(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,AmqpAttributes> sourceCallback) throws org.mule.runtime.api.exception.MuleException
onStart in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,AmqpAttributes>org.mule.runtime.api.exception.MuleExceptionprotected void configureConnection(org.mule.runtime.extension.api.runtime.source.SourceCallback<InputStream,AmqpAttributes> sourceCallback) throws org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.connection.ConnectionException@OnSuccess
public void onSuccess(@ParameterGroup(name="Response",showInDsl=true)
AmqpResponseMessageBuilder messageBuilder,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
@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.SourceResult sourceResult)
@OnError
public void onError(org.mule.runtime.api.message.Error error,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
protected void applyRecoverStrategy(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext,
com.rabbitmq.client.Channel channel)
public void onStop()
onStop in class org.mule.runtime.extension.api.runtime.source.Source<InputStream,AmqpAttributes>Copyright © 2019 MuleSoft, Inc.. All rights reserved.