com.taobao.metamorphosis.client.extension.spring
类 MetaqTopic
java.lang.Object
com.taobao.metamorphosis.client.extension.spring.MetaqTopic
public class MetaqTopic
- extends Object
A metaq topic for consumer.
- 从以下版本开始:
- 1.4.5
- 作者:
- dennis
MetaqTopic
public MetaqTopic(String topic,
int maxBufferSize,
ConsumerConfig consumerConfig)
MetaqTopic
public MetaqTopic()
getMaxBufferSize
public int getMaxBufferSize()
setMaxBufferSize
public void setMaxBufferSize(int maxBufferSize)
hashCode
public int hashCode()
- 覆盖:
- 类
Object
中的 hashCode
equals
public boolean equals(Object obj)
- 覆盖:
- 类
Object
中的 equals
getConsumerConfig
public ConsumerConfig getConsumerConfig()
setConsumerConfig
public void setConsumerConfig(ConsumerConfig consumerConfig)
getTopic
public String getTopic()
setTopic
public void setTopic(String topic)
getRecoverThreadCount
public int getRecoverThreadCount()
setRecoverThreadCount
public void setRecoverThreadCount(int recoverThreadCount)
getRecoverMessageIntervalInMills
public long getRecoverMessageIntervalInMills()
setRecoverMessageIntervalInMills
public void setRecoverMessageIntervalInMills(long recoverMessageIntervalInMills)
getZkConfig
public ZkUtils.ZKConfig getZkConfig()
setZkConfig
public void setZkConfig(ZkUtils.ZKConfig zkConfig)
getMaxFetchRetries
public int getMaxFetchRetries()
isAlwaysConsumeFromMaxOffset
public boolean isAlwaysConsumeFromMaxOffset()
getServerUrl
public String getServerUrl()
setMaxFetchRetries
public void setMaxFetchRetries(int maxFetchRetries)
setServerUrl
public void setServerUrl(String serverUrl)
getMaxIncreaseFetchDataRetries
public int getMaxIncreaseFetchDataRetries()
setMaxIncreaseFetchDataRetries
public void setMaxIncreaseFetchDataRetries(int maxFetchRetriesForDataNotEnough)
setPartitionsInfo
public void setPartitionsInfo(Properties partitionsInfo)
getPartitionsInfo
public Properties getPartitionsInfo()
getFetchRunnerCount
public int getFetchRunnerCount()
getOffset
public long getOffset()
setOffset
public void setOffset(long offset)
setAlwaysConsumeFromMaxOffset
public void setAlwaysConsumeFromMaxOffset(boolean always)
getGroup
public String getGroup()
setGroup
public void setGroup(String group)
getPartition
public String getPartition()
setPartition
public void setPartition(String partition)
getConsumerId
public String getConsumerId()
setConsumerId
public void setConsumerId(String consumerId)
getFetchTimeoutInMills
public long getFetchTimeoutInMills()
setFetchTimeoutInMills
public void setFetchTimeoutInMills(long fetchTimeoutInMills)
getMaxDelayFetchTimeInMills
public long getMaxDelayFetchTimeInMills()
setMaxDelayFetchTimeInMills
public void setMaxDelayFetchTimeInMills(long maxDelayFetchTimeInMills)
setFetchRunnerCount
public void setFetchRunnerCount(int fetchRunnerCount)
getCommitOffsetPeriodInMills
public long getCommitOffsetPeriodInMills()
setCommitOffsetPeriodInMills
public void setCommitOffsetPeriodInMills(long commitOffsetPeriodInMills)
getLoadBalanceStrategyType
public LoadBalanceStrategy.Type getLoadBalanceStrategyType()
setLoadBalanceStrategyType
public void setLoadBalanceStrategyType(LoadBalanceStrategy.Type loadBalanceStrategyType)
Copyright © 2010–2013. All rights reserved.