Example #1
0
 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;
 }
Example #2
0
 public void publish(BatchDescriptor paramBatchDescriptor) {
   publish(paramBatchDescriptor.getEnd(), paramBatchDescriptor.getSize());
 }