public class SourceDeclarer extends ExecutableComponentDeclarer<SourceDeclarer,SourceDeclaration>
SourceDeclaration through a fluent APIdeclaration| Modifier and Type | Method and Description |
|---|---|
SourceDeclarer |
hasResponse(boolean hasResponse)
Allows to specify if the declared source emits responses
|
SourceCallbackDeclarer |
onError()
Allows to declare a callback which will listen for errors that occurred in the flow
processing a Source generated message.
|
SourceCallbackDeclarer |
onSuccess()
Allows to declare a callback which will listen to all the successful results of the dispatched
Source messages to the flow.
|
SourceCallbackDeclarer |
onTerminate()
Allows to declare a callback which will listen to all the results of the dispatched
Source messages to the flow.
|
requiresConnection, supportsStreaming, transactional, withOutput, withOutputAttributeswithChain, withChain, withComponent, withErrorModel, withModelProperty, withOptionalComponent, withRoute, withStereotypedescribedAs, onDefaultParameterGroup, onParameterGroupgetDeclarationpublic SourceDeclarer hasResponse(boolean hasResponse)
hasResponse - Whether the declared source emits a responsethis declarerpublic SourceCallbackDeclarer onSuccess()
SourceCallbackDeclarerpublic SourceCallbackDeclarer onError()
SourceCallbackDeclarerpublic SourceCallbackDeclarer onTerminate()
onSuccess() ()} and onError() callbacks.SourceCallbackDeclarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.