public class ConsumerProperties extends Object
| Constructor and Description |
|---|
ConsumerProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBackOffInitialInterval() |
int |
getBackOffMaxInterval() |
double |
getBackOffMultiplier() |
int |
getConcurrency() |
HeaderMode |
getHeaderMode() |
int |
getInstanceCount() |
int |
getInstanceIndex() |
int |
getMaxAttempts() |
boolean |
isPartitioned() |
void |
setBackOffInitialInterval(int backOffInitialInterval) |
void |
setBackOffMaxInterval(int backOffMaxInterval) |
void |
setBackOffMultiplier(double backOffMultiplier) |
void |
setConcurrency(int concurrency) |
void |
setHeaderMode(HeaderMode headerMode) |
void |
setInstanceCount(int instanceCount) |
void |
setInstanceIndex(int instanceIndex) |
void |
setMaxAttempts(int maxAttempts) |
void |
setPartitioned(boolean partitioned) |
@Min(value=1L,
message="Concurrency should be greater than zero.")
public 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 zero.")
public int getInstanceCount()
public void setInstanceCount(int instanceCount)
@Min(value=0L,
message="Instance index should be greater than or equal to 0")
public int getInstanceIndex()
public void setInstanceIndex(int instanceIndex)
@Min(value=1L,
message="Max attempts should be greater than zero.")
public int getMaxAttempts()
public void setMaxAttempts(int maxAttempts)
@Min(value=1L,
message="Backoff initial interval should be greater than zero.")
public int getBackOffInitialInterval()
public void setBackOffInitialInterval(int backOffInitialInterval)
@Min(value=1L,
message="Backoff max interval should be greater than zero.")
public int getBackOffMaxInterval()
public void setBackOffMaxInterval(int backOffMaxInterval)
@Min(value=1L,
message="Backoff multiplier should be greater than zero.")
public double getBackOffMultiplier()
public void setBackOffMultiplier(double backOffMultiplier)
public HeaderMode getHeaderMode()
public void setHeaderMode(HeaderMode headerMode)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.