public class ConsumerProperties extends Object
| Constructor and Description |
|---|
ConsumerProperties() |
| Modifier and Type | Method and Description |
|---|---|
@Min(value=1L,message="Backoff initial interval should be greater than zero.") int |
getBackOffInitialInterval() |
@Min(value=1L,message="Backoff max interval should be greater than zero.") int |
getBackOffMaxInterval() |
@Min(value=1L,message="Backoff multiplier should be greater than zero.") double |
getBackOffMultiplier() |
@Min(value=1L,message="Concurrency should be greater than zero.") int |
getConcurrency() |
HeaderMode |
getHeaderMode() |
@Min(value=-1L,message="Instance count should be greater than or equal to -1.") int |
getInstanceCount() |
@Min(value=-1L,message="Instance index should be greater than or equal to -1") int |
getInstanceIndex() |
List<Integer> |
getInstanceIndexList() |
@Min(value=1L,message="Max attempts should be greater than zero.") int |
getMaxAttempts() |
Map<Class<? extends Throwable>,Boolean> |
getRetryableExceptions() |
String |
getRetryTemplateName() |
boolean |
isAutoStartup() |
boolean |
isBatchMode() |
boolean |
isDefaultRetryable() |
boolean |
isMultiplex() |
boolean |
isPartitioned() |
boolean |
isUseNativeDecoding() |
void |
setAutoStartup(boolean autoStartup) |
void |
setBackOffInitialInterval(int backOffInitialInterval) |
void |
setBackOffMaxInterval(int backOffMaxInterval) |
void |
setBackOffMultiplier(double backOffMultiplier) |
void |
setBatchMode(boolean batchMode) |
void |
setConcurrency(int concurrency) |
void |
setDefaultRetryable(boolean defaultRetryable) |
void |
setHeaderMode(HeaderMode headerMode) |
void |
setInstanceCount(int instanceCount) |
void |
setInstanceIndex(int instanceIndex) |
void |
setInstanceIndexList(List<Integer> instanceIndexList) |
void |
setMaxAttempts(int maxAttempts) |
void |
setMultiplex(boolean multiplex) |
void |
setPartitioned(boolean partitioned) |
void |
setRetryableExceptions(Map<Class<? extends Throwable>,Boolean> retryableExceptions) |
void |
setRetryTemplateName(String retryTemplateName) |
void |
setUseNativeDecoding(boolean useNativeDecoding) |
public String getRetryTemplateName()
public void setRetryTemplateName(String retryTemplateName)
@Min(value=1L,
message="Concurrency should be greater than zero.")
public @Min(value=1L,message="Concurrency should be greater than zero.") int getConcurrency()
public void setConcurrency(int concurrency)
public boolean isPartitioned()
public void setPartitioned(boolean partitioned)
@Min(value=-1L,
message="Instance count should be greater than or equal to -1.")
public @Min(value=-1L,message="Instance count should be greater than or equal to -1.") int getInstanceCount()
public void setInstanceCount(int instanceCount)
@Min(value=-1L,
message="Instance index should be greater than or equal to -1")
public @Min(value=-1L,message="Instance index should be greater than or equal to -1") int getInstanceIndex()
public void setInstanceIndex(int instanceIndex)
@Min(value=1L,
message="Max attempts should be greater than zero.")
public @Min(value=1L,message="Max attempts should be greater than zero.") int getMaxAttempts()
public void setMaxAttempts(int maxAttempts)
@Min(value=1L,
message="Backoff initial interval should be greater than zero.")
public @Min(value=1L,message="Backoff initial interval should be greater than zero.") int getBackOffInitialInterval()
public void setBackOffInitialInterval(int backOffInitialInterval)
@Min(value=1L,
message="Backoff max interval should be greater than zero.")
public @Min(value=1L,message="Backoff max interval should be greater than zero.") int getBackOffMaxInterval()
public void setBackOffMaxInterval(int backOffMaxInterval)
@Min(value=1L,
message="Backoff multiplier should be greater than zero.")
public @Min(value=1L,message="Backoff multiplier should be greater than zero.") double getBackOffMultiplier()
public void setBackOffMultiplier(double backOffMultiplier)
public boolean isDefaultRetryable()
public void setDefaultRetryable(boolean defaultRetryable)
public void setRetryableExceptions(Map<Class<? extends Throwable>,Boolean> retryableExceptions)
public HeaderMode getHeaderMode()
public void setHeaderMode(HeaderMode headerMode)
public boolean isUseNativeDecoding()
public void setUseNativeDecoding(boolean useNativeDecoding)
public boolean isMultiplex()
public void setMultiplex(boolean multiplex)
public boolean isAutoStartup()
public void setAutoStartup(boolean autoStartup)
public boolean isBatchMode()
public void setBatchMode(boolean batchMode)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.