Class ConsumerProperties
java.lang.Object
org.springframework.cloud.stream.binder.ConsumerProperties
- Direct Known Subclasses:
ExtendedConsumerProperties
Common consumer properties - spring.cloud.stream.bindings.[destinationName].consumer.
- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Gary Russell, Soby Chacko, Oleg Zhurakousky, Nicolas Homble, Michael Michailidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdoubleintintintintbooleanbooleanbooleanbooleanbooleanbooleanvoidpopulateBindingName(String bindingName) This method is not intended as a configuration property to set by the applications.voidsetAutoStartup(boolean autoStartup) voidsetBackOffInitialInterval(int backOffInitialInterval) voidsetBackOffMaxInterval(int backOffMaxInterval) voidsetBackOffMultiplier(double backOffMultiplier) voidsetBatchMode(boolean batchMode) voidsetConcurrency(int concurrency) voidsetDefaultRetryable(boolean defaultRetryable) voidsetHeaderMode(HeaderMode headerMode) voidsetInstanceCount(int instanceCount) voidsetInstanceIndex(int instanceIndex) voidsetInstanceIndexList(List<Integer> instanceIndexList) voidsetMaxAttempts(int maxAttempts) voidsetMultiplex(boolean multiplex) voidsetPartitioned(boolean partitioned) voidsetRetryableExceptions(Map<Class<? extends Throwable>, Boolean> retryableExceptions) voidsetRetryTemplateName(String retryTemplateName) voidsetUseNativeDecoding(boolean useNativeDecoding)
-
Constructor Details
-
ConsumerProperties
public ConsumerProperties()
-
-
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.
-
getRetryTemplateName
-
setRetryTemplateName
-
getConcurrency
public int getConcurrency() -
setConcurrency
public void setConcurrency(int concurrency) -
isPartitioned
public boolean isPartitioned() -
setPartitioned
public void setPartitioned(boolean partitioned) -
getInstanceCount
public int getInstanceCount() -
setInstanceCount
public void setInstanceCount(int instanceCount) -
getInstanceIndex
public int getInstanceIndex() -
setInstanceIndex
public void setInstanceIndex(int instanceIndex) -
getInstanceIndexList
-
setInstanceIndexList
-
getMaxAttempts
public int getMaxAttempts() -
setMaxAttempts
public void setMaxAttempts(int maxAttempts) -
getBackOffInitialInterval
public int getBackOffInitialInterval() -
setBackOffInitialInterval
public void setBackOffInitialInterval(int backOffInitialInterval) -
getBackOffMaxInterval
public int getBackOffMaxInterval() -
setBackOffMaxInterval
public void setBackOffMaxInterval(int backOffMaxInterval) -
getBackOffMultiplier
public double getBackOffMultiplier() -
setBackOffMultiplier
public void setBackOffMultiplier(double backOffMultiplier) -
isDefaultRetryable
public boolean isDefaultRetryable() -
setDefaultRetryable
public void setDefaultRetryable(boolean defaultRetryable) -
getRetryableExceptions
-
setRetryableExceptions
-
getHeaderMode
-
setHeaderMode
-
isUseNativeDecoding
public boolean isUseNativeDecoding() -
setUseNativeDecoding
public void setUseNativeDecoding(boolean useNativeDecoding) -
isMultiplex
public boolean isMultiplex() -
setMultiplex
public void setMultiplex(boolean multiplex) -
isAutoStartup
public boolean isAutoStartup() -
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
isBatchMode
public boolean isBatchMode() -
setBatchMode
public void setBatchMode(boolean batchMode)
-