public interface MessageConsumerDelegate
| Modifier and Type | Method and Description |
|---|---|
void |
createConsumers(int numberOfConsumers)
Creates and start N consumers, where N is defined by the param
numberOfConsumers. |
void |
disableConsumers() |
void |
onError(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext,
org.mule.runtime.api.message.Error error)
Communicates when a message has not been successfully processed in a flow.
|
void |
onSuccess(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
Communicates when a message has been successfully processed in a flow.
|
void |
stop()
Request to stop all the message consumers.
|
void createConsumers(int numberOfConsumers)
throws org.mule.runtime.api.connection.ConnectionException
numberOfConsumers.numberOfConsumers - number of consumers to create and start.org.mule.runtime.api.connection.ConnectionException - If an error occurs trying to create and start the consumers.void onSuccess(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
callbackContext - Context with references of the processed message.void onError(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext,
org.mule.runtime.api.message.Error error)
callbackContext - Context with references of the processed message.error - Produced error on the flow.void stop()
void disableConsumers()
Copyright © 2023. All rights reserved.