Package com.alibaba.jstorm.kafka.PartitionConsumer

Examples of com.alibaba.jstorm.kafka.PartitionConsumer.EmitState


  @Override
  public void nextTuple() {
    Collection<PartitionConsumer> partitionConsumers = coordinator.getPartitionConsumers();
    for(PartitionConsumer consumer: partitionConsumers) {
      EmitState state = consumer.emit(collector);
      LOG.debug("====== partition "+ consumer.getPartition().getPartition() + " emit message state is "+state);
//      if(state != EmitState.EMIT_MORE) {
//        currentPartitionIndex  = (currentPartitionIndex+1) % consumerSize;
//      }
//      if(state != EmitState.EMIT_NONE) {
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.kafka.PartitionConsumer.EmitState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.