Examples of EmitState


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
Copyright © 2018 www.massapi.com. 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.