code: @Override
  	long getPending()
  	{
  		long consumed = RingBuffer.getMinimumSequence(gatingSequences, cursor.getAsLong());
  		long produced = cursor.getAsLong();
  		return produced - consumed;
  	}
docs: See {@code RingBufferProducer.producerCapacity()}.