public BatchDescriptor next(BatchDescriptor paramBatchDescriptor) { if (this.gatingSequences == null) throw new NullPointerException("gatingSequences must be set before claiming sequences"); paramBatchDescriptor.setEnd( this.claimStrategy.incrementAndGet(paramBatchDescriptor.getSize(), this.gatingSequences)); return paramBatchDescriptor; }
public void publish(BatchDescriptor paramBatchDescriptor) { publish(paramBatchDescriptor.getEnd(), paramBatchDescriptor.getSize()); }