Class RouterSinkProperties
java.lang.Object
org.springframework.cloud.stream.app.sink.router.RouterSinkProperties
Properties for the Router Sink; the router can use an expression
or groovy script to return either a channel name, or a key to
the channel mappings map.
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
@jakarta.validation.constraints.AssertTrue(message="\'expression\' and \'script\' are mutually exclusive") boolean
boolean
void
setDefaultOutputBinding
(String defaultOutputBinding) void
setDestinationMappings
(Properties destinationMappings) void
setExpression
(Expression expression) void
setRefreshDelay
(int refreshDelay) void
setResolutionRequired
(boolean resolutionRequired) void
void
setVariables
(Properties variables) void
setVariablesLocation
(Resource variablesLocation)
-
Field Details
-
DEFAULT_EXPRESSION
Default SpEL expression.
-
-
Constructor Details
-
RouterSinkProperties
public RouterSinkProperties()
-
-
Method Details
-
getVariables
-
setVariables
-
getVariablesLocation
-
setVariablesLocation
-
getExpression
-
setExpression
-
getScript
-
setScript
-
getDefaultOutputBinding
-
setDefaultOutputBinding
-
getRefreshDelay
public int getRefreshDelay() -
setRefreshDelay
public void setRefreshDelay(int refreshDelay) -
isResolutionRequired
public boolean isResolutionRequired() -
setResolutionRequired
public void setResolutionRequired(boolean resolutionRequired) -
getDestinationMappings
-
setDestinationMappings
-
isExpressionOrScriptValid
@AssertTrue(message="\'expression\' and \'script\' are mutually exclusive") public @jakarta.validation.constraints.AssertTrue(message="\'expression\' and \'script\' are mutually exclusive") boolean isExpressionOrScriptValid()
-