public class ConsumerConfig extends Object
| Constructor and Description |
|---|
ConsumerConfig(String endpoint,
String region,
String accessKeyId,
String accessKeySecret) |
ConsumerConfig(String endpoint,
String region,
String accessKeyId,
String accessKeySecret,
String securityToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
setClientConfig(ClientConfig clientConfig) |
void |
setConsumeFrom(String consumeFrom) |
void |
setConsumerGroupName(String consumerGroupName) |
void |
setConsumerName(String consumerName) |
void |
setDataFetchIntervalInMillisecond(int dataFetchIntervalInMillisecond) |
void |
setFlushCheckpointIntervalInSecond(int flushCheckpointIntervalInSecond) |
void |
setHeartbeatIntervalInSecond(int heartbeatIntervalInSecond) |
void |
setMaxFetchLogGroupCount(int maxFetchLogGroupCount) |
void |
setOrderedConsume(boolean orderedConsume) |
void |
setProjectID(String projectID) |
void |
setStopTimeout(int stopTimeout) |
void |
setTopicIDList(List<String> topicIDList) |
void |
validateConsumerConfig() |
public ConsumerConfig(String endpoint, String region, String accessKeyId, String accessKeySecret)
public void validateConsumerConfig()
throws LogException
LogExceptionpublic void setClientConfig(ClientConfig clientConfig) throws LogException
LogExceptionpublic void setProjectID(String projectID) throws LogException
LogExceptionpublic void setConsumerGroupName(String consumerGroupName) throws LogException
LogExceptionpublic void setTopicIDList(List<String> topicIDList) throws LogException
LogExceptionpublic void setConsumerName(String consumerName) throws LogException
LogExceptionpublic void setConsumeFrom(String consumeFrom) throws LogException
LogExceptionpublic void setHeartbeatIntervalInSecond(int heartbeatIntervalInSecond)
throws LogException
LogExceptionpublic void setDataFetchIntervalInMillisecond(int dataFetchIntervalInMillisecond)
throws LogException
LogExceptionpublic void setFlushCheckpointIntervalInSecond(int flushCheckpointIntervalInSecond)
throws LogException
LogExceptionpublic void setMaxFetchLogGroupCount(int maxFetchLogGroupCount)
throws LogException
LogExceptionpublic void setOrderedConsume(boolean orderedConsume)
public void setStopTimeout(int stopTimeout)
Copyright © 2025. All rights reserved.