public class DefaultFlowBuilder extends Object implements Flow.Builder
Flow with a default implementation
Builder instance can be configured using the methods that follow the builder pattern until the flow is built. After that point,
builder methods will fail to update the builder state.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultFlowBuilder.DefaultFlow
Default implementation of
Flow |
| Constructor and Description |
|---|
DefaultFlowBuilder(String name,
MuleContext muleContext)
Creates a new builder
|
| Modifier and Type | Method and Description |
|---|---|
Flow |
build()
Builds a flow with the provided configuration.
|
protected void |
checkImmutable() |
Flow.Builder |
messageProcessors(List<Processor> messageProcessors)
Configures the message processors to execute as part of flow.
|
Flow.Builder |
messageSource(MessageSource messageSource)
Configures the message source for the flow.
|
Flow.Builder |
messagingExceptionHandler(MessagingExceptionHandler exceptionListener)
Configures the exception listener to manage exceptions thrown on the flow execution.
|
Flow.Builder |
processingStrategyFactory(ProcessingStrategyFactory processingStrategyFactory)
Configures the factory used to create processing strategies on the created flow.
|
public DefaultFlowBuilder(String name, MuleContext muleContext)
name - name of the flow to be created. Non empty.muleContext - context where the flow will be associated with. Non null.public Flow.Builder messageSource(MessageSource messageSource)
messageSource in interface Flow.BuildermessageSource - message source to use. Non null.public Flow.Builder messageProcessors(List<Processor> messageProcessors)
messageProcessors in interface Flow.BuildermessageProcessors - message processors to execute. Non null.public Flow.Builder messagingExceptionHandler(MessagingExceptionHandler exceptionListener)
messagingExceptionHandler in interface Flow.BuilderexceptionListener - exception listener to use on the flow.public Flow.Builder processingStrategyFactory(ProcessingStrategyFactory processingStrategyFactory)
processingStrategyFactory in interface Flow.BuilderprocessingStrategyFactory - factory to create processing strategies. Non null.public Flow build()
build in interface Flow.Builderprotected final void checkImmutable()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.