Class ProducerProperties
java.lang.Object
org.springframework.cloud.stream.binder.ProducerProperties
- Direct Known Subclasses:
ExtendedProducerProperties
Common producer properties.
- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Gary Russell, Oleg Zhurakousky
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.springframework.expression.Expressionorg.springframework.expression.ExpressionString[]booleanbooleanbooleanbooleanbooleanbooleanvoidpopulateBindingName(String bindingName) This method is not intended as a configuration property to set by the applications.voidsetAutoStartup(boolean autoStartup) voidsetErrorChannelEnabled(boolean errorChannelEnabled) voidsetHeaderMode(HeaderMode headerMode) voidsetPartitionCount(int partitionCount) voidsetPartitionKeyExpression(org.springframework.expression.Expression partitionKeyExpression) voidsetPartitionKeyExtractorName(String partitionKeyExtractorName) voidsetPartitionSelectorExpression(org.springframework.expression.Expression partitionSelectorExpression) voidsetPartitionSelectorName(String partitionSelectorName) voidvoidsetRequiredGroups(String... requiredGroups) voidsetUseNativeEncoding(boolean useNativeEncoding)
-
Constructor Details
-
ProducerProperties
public ProducerProperties()
-
-
Method Details
-
getBindingName
-
populateBindingName
This method is not intended as a configuration property to set by the applications. Therefore, we are not providing a proper setter method for this.- Parameters:
bindingName- binding name populated by the framework.
-
getPartitionKeyExpression
public org.springframework.expression.Expression getPartitionKeyExpression() -
setPartitionKeyExpression
public void setPartitionKeyExpression(org.springframework.expression.Expression partitionKeyExpression) -
isPartitioned
public boolean isPartitioned() -
getPartitionSelectorExpression
public org.springframework.expression.Expression getPartitionSelectorExpression() -
setPartitionSelectorExpression
public void setPartitionSelectorExpression(org.springframework.expression.Expression partitionSelectorExpression) -
getPartitionCount
public int getPartitionCount() -
setPartitionCount
public void setPartitionCount(int partitionCount) -
getRequiredGroups
-
setRequiredGroups
-
isValidPartitionKeyProperty
public boolean isValidPartitionKeyProperty() -
isValidPartitionSelectorProperty
public boolean isValidPartitionSelectorProperty() -
getHeaderMode
-
setHeaderMode
-
isUseNativeEncoding
public boolean isUseNativeEncoding() -
setUseNativeEncoding
public void setUseNativeEncoding(boolean useNativeEncoding) -
isErrorChannelEnabled
public boolean isErrorChannelEnabled() -
setErrorChannelEnabled
public void setErrorChannelEnabled(boolean errorChannelEnabled) -
getPartitionKeyExtractorName
-
setPartitionKeyExtractorName
-
getPartitionSelectorName
-
setPartitionSelectorName
-
isAutoStartup
public boolean isAutoStartup() -
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
getPoller
-
setPoller
-