com.taobao.metamorphosis.client
类 MetaClientConfig
java.lang.Object
com.taobao.metamorphosis.client.MetaClientConfig
- 所有已实现的接口:
- Serializable
- 直接已知子类:
- ConsumerConfig
public class MetaClientConfig
- extends Object
- implements Serializable
- 另请参见:
- 序列化表格
serverUrl
protected String serverUrl
zkConfig
protected ZkUtils.ZKConfig zkConfig
MetaClientConfig
public MetaClientConfig()
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)
getZkRoot
public String getZkRoot()
setZkRoot
public void setZkRoot(String zkRoot)
isZkEnable
public boolean isZkEnable()
setZkEnable
public void setZkEnable(boolean zkEnable)
getZkConnect
public String getZkConnect()
setZkConnect
public void setZkConnect(String zkConnect)
getZkSessionTimeoutMs
public int getZkSessionTimeoutMs()
setZkSessionTimeoutMs
public void setZkSessionTimeoutMs(int zkSessionTimeoutMs)
getZkConnectionTimeoutMs
public int getZkConnectionTimeoutMs()
setZkConnectionTimeoutMs
public void setZkConnectionTimeoutMs(int zkConnectionTimeoutMs)
getZkSyncTimeMs
public int getZkSyncTimeMs()
setZkSyncTimeMs
public void setZkSyncTimeMs(int zkSyncTimeMs)
getServerUrl
public String getServerUrl()
setServerUrl
public void setServerUrl(String serverUrl)
getDiamondPartitionsDataId
public String getDiamondPartitionsDataId()
getDiamondPartitionsGroup
public String getDiamondPartitionsGroup()
setPartitionsInfo
public void setPartitionsInfo(Properties partitionsInfo)
- 设置topic的分布情况.
对于使用严格顺序发送消息有效(OrderedMessageProducer),目前版本没有diamond所以从这里设置和获取。
partitionsInfo
.put("topic.num.exampleTopic1","brokerId1:分区个数;brokerId2:分区个数...")
partitionsInfo
.put("topic.num.exampleTopic2","brokerId1:分区个数;brokerId2:分区个数...")
- 参数:
partitionsInfo
-
getPartitionsInfo
public Properties getPartitionsInfo()
hashCode
public int hashCode()
- 覆盖:
- 类
Object
中的 hashCode
equals
public boolean equals(Object obj)
- 覆盖:
- 类
Object
中的 equals
Copyright © 2010–2013. All rights reserved.