public class ConsumerConfig extends Object
构造器和说明 |
---|
ConsumerConfig(String endpoint,
String region,
String accessKeyId,
String accessKeySecret) |
ConsumerConfig(String endpoint,
String region,
String accessKeyId,
String accessKeySecret,
String securityToken) |
限定符和类型 | 方法和说明 |
---|---|
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
LogException
public void setClientConfig(ClientConfig clientConfig) throws LogException
LogException
public void setProjectID(String projectID) throws LogException
LogException
public void setConsumerGroupName(String consumerGroupName) throws LogException
LogException
public void setTopicIDList(List<String> topicIDList) throws LogException
LogException
public void setConsumerName(String consumerName) throws LogException
LogException
public void setConsumeFrom(String consumeFrom) throws LogException
LogException
public void setHeartbeatIntervalInSecond(int heartbeatIntervalInSecond) throws LogException
LogException
public void setDataFetchIntervalInMillisecond(int dataFetchIntervalInMillisecond) throws LogException
LogException
public void setFlushCheckpointIntervalInSecond(int flushCheckpointIntervalInSecond) throws LogException
LogException
public void setMaxFetchLogGroupCount(int maxFetchLogGroupCount) throws LogException
LogException
public void setOrderedConsume(boolean orderedConsume)
public void setStopTimeout(int stopTimeout)
Copyright © 2023. All rights reserved.