/** * Get the remaining capacity for this ringBuffer. * * @return The number of slots remaining. */ public long remainingCapacity() { return sequencer.remainingCapacity(); }
/** * Get the remaining capacity for this ringBuffer. * * @return The number of slots remaining. */ public long remainingCapacity() { return sequencer.remainingCapacity(); }
@Test public void shouldCalculateRemainingCapacity() throws Exception { sequencer.addGatingSequences(gatingSequence); assertThat(sequencer.remainingCapacity(), is((long) BUFFER_SIZE)); for (int i = 1; i < BUFFER_SIZE; i++) { sequencer.next(); assertThat(sequencer.remainingCapacity(), is((long) BUFFER_SIZE - i)); } }
/** * Get the remaining capacity for this ringBuffer. * * @return The number of slots remaining. */ public long remainingCapacity() { return sequencer.remainingCapacity(); }
/** * Get the remaining capacity for this ringBuffer. * * @return The number of slots remaining. */ public long remainingCapacity() { return sequencer.remainingCapacity(); }
/** * Get the remaining capacity for this ringBuffer. * @return The number of slots remaining. */ public long remainingCapacity() { return sequencer.remainingCapacity(); }
/** * Get the remaining capacity for this ringBuffer. * * @return The number of slots remaining. */ public long remainingCapacity() { return sequencer.remainingCapacity(); }