@Test public void testGetFullCycles() { int amountBuffers = 10; int bufferCapacity = 100; int expectedNumberCycles = 2; RingBuffer buffer = RingBuffer.create(amountBuffers, bufferCapacity); byte[] item = new byte[bufferCapacity]; for (int i = 0; i <= expectedNumberCycles; i++) { fillBufferFully(buffer, item, amountBuffers); } assertEquals(expectedNumberCycles, buffer.getFullCycles()); }
@Override public int getFullCycles() { return countCycles; }
RingBuffer implements RingBufferMBean { @Override public int getFullCycles() { return countCycles; } }
RingBuffer implements RingBufferMBean { @Override public int getFullCycles() { return countCycles; } private  RingBuffer(Buffer[] ringBuffers); }
RingBuffer implements RingBufferMBean { @Override public int getFullCycles() { return countCycles; } private  RingBuffer(Buffer[] ringBuffers); static RingBuffer create(int amountBuffers, int bufferCapacity); Slice get(byte[] key); void put(byte[] key, byte[] data); void put(byte[] key, byte[] data, int offset, int length); @Override void reset(); @Override String getStatsPuts(); @Override double getStatsPutsRate(); @Override long getStatsPutsTotal(); @Override String getStatsGets(); @Override double getStatsGetsRate(); @Override long getStatsGetsTotal(); @Override String getStatsMisses(); @Override double getStatsMissesRate(); @Override long getStatsMissesTotal(); @Override int getItems(); @Override long getSize(); @Override String getLifetime(); @Override long getLifetimeSeconds(); @Override String getCurrentBuffer(); @Override int getFullCycles(); }
RingBuffer implements RingBufferMBean { @Override public int getFullCycles() { return countCycles; } private  RingBuffer(Buffer[] ringBuffers); static RingBuffer create(int amountBuffers, int bufferCapacity); Slice get(byte[] key); void put(byte[] key, byte[] data); void put(byte[] key, byte[] data, int offset, int length); @Override void reset(); @Override String getStatsPuts(); @Override double getStatsPutsRate(); @Override long getStatsPutsTotal(); @Override String getStatsGets(); @Override double getStatsGetsRate(); @Override long getStatsGetsTotal(); @Override String getStatsMisses(); @Override double getStatsMissesRate(); @Override long getStatsMissesTotal(); @Override int getItems(); @Override long getSize(); @Override String getLifetime(); @Override long getLifetimeSeconds(); @Override String getCurrentBuffer(); @Override int getFullCycles();  }