It allows read access to any element in the buffer not just the first or last element. @author Ceki Gülcü
100101102103104105106107108109110111112
} return cb; } private void removeHead() { CyclicBuffer cb = head.value; if (cb != null) { cb.clear(); } map.remove(head.key); bufferCount--; head = head.next; head.prev = null;
888990919293949596979899100
99100101102103104105106107108109110111
2324252627282930
CyclicBuffer cb; int maxSize = 512; public void start() { cb = new CyclicBuffer(maxSize); super.start(); }
86878889909192939495969798
2425262728293031