@Test public void smoke() { long now = 3000; CyclicBuffer<Object> cb = tracker.getOrCreate(key, now); assertEquals(cb, tracker.getOrCreate(key, now++)); now += CyclicBufferTracker.DEFAULT_TIMEOUT + 1000; tracker.removeStaleComponents(now); assertEquals(0, tracker.liveKeysAsOrderedList().size()); assertEquals(0, tracker.getComponentCount()); }
List<String> liveKeysAsOrderedList() { return new ArrayList<String>(liveMap.keySet()); }
CyclicBufferTracker extends AbstractComponentTracker<CyclicBuffer<E>> { List<String> liveKeysAsOrderedList() { return new ArrayList<String>(liveMap.keySet()); } }
CyclicBufferTracker extends AbstractComponentTracker<CyclicBuffer<E>> { List<String> liveKeysAsOrderedList() { return new ArrayList<String>(liveMap.keySet()); } CyclicBufferTracker(); }
CyclicBufferTracker extends AbstractComponentTracker<CyclicBuffer<E>> { List<String> liveKeysAsOrderedList() { return new ArrayList<String>(liveMap.keySet()); } CyclicBufferTracker(); int getBufferSize(); void setBufferSize(int bufferSize); }
CyclicBufferTracker extends AbstractComponentTracker<CyclicBuffer<E>> { List<String> liveKeysAsOrderedList() { return new ArrayList<String>(liveMap.keySet()); } CyclicBufferTracker(); int getBufferSize(); void setBufferSize(int bufferSize);  }