com.taobao.metamorphosis.client.producer
类 RoundRobinPartitionSelector

java.lang.Object
  继承者 com.taobao.metamorphosis.client.producer.AbstractPartitionSelector
      继承者 com.taobao.metamorphosis.client.producer.RoundRobinPartitionSelector
所有已实现的接口:
PartitionSelector

public class RoundRobinPartitionSelector
extends AbstractPartitionSelector

轮询的分区选择器,默认使用此选择器

作者:
boyan

构造方法摘要
RoundRobinPartitionSelector()
           
 
方法摘要
 Partition getPartition0(String topic, List<Partition> partitions, Message message)
           
 
从类 com.taobao.metamorphosis.client.producer.AbstractPartitionSelector 继承的方法
getPartition
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RoundRobinPartitionSelector

public RoundRobinPartitionSelector()
方法详细信息

getPartition0

public Partition getPartition0(String topic,
                               List<Partition> partitions,
                               Message message)
                        throws MetaClientException
指定者:
AbstractPartitionSelector 中的 getPartition0
抛出:
MetaClientException


Copyright © 2010–2013. All rights reserved.