public final class RouterDeclarer extends ComponentDeclarer<T,D>
RouterDeclaration through a fluent APIdeclaration| Constructor and Description |
|---|
RouterDeclarer(RouterDeclaration declaration)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
T |
blocking(boolean blocking)
Specifies if the operation is blocking or it allows non blocking execution
|
T |
withErrorModel(ErrorModel error)
Adds an
ErrorModel to indicate that the current operation could throw the added error. |
T |
withExecutionType(ExecutionType executionType)
Specifies the operation's
ExecutionType |
RouteDeclarer |
withRoute(String routeName)
Adds a route of the given
name |
describedAs, requiresConnection, supportsStreaming, transactional, withModelProperty, withStereotypewithOutput, withOutputAttributesonDefaultParameterGroup, onParameterGroupgetDeclarationpublic RouterDeclarer(RouterDeclaration declaration)
declaration - the RouterDeclaration to be configuredpublic RouteDeclarer withRoute(String routeName)
namerouteName - a non blank nameRouteDeclarer which allows describing the created routepublic T withErrorModel(ErrorModel error)
ErrorModel to indicate that the current operation could throw the added error.error - ErrorModel to add to the OperationDeclarationthis declarerpublic T withExecutionType(ExecutionType executionType)
ExecutionTypeexecutionType - the execution typethis declarerpublic T blocking(boolean blocking)
blocking - whether the operation is blocking or notthis declarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.