@Override
    public List<RefStoreEntry> list(final int limit,
                                    final Predicate<RefStoreEntry> filter) {

        final MutableLong consumedCount = new MutableLong(0);
        final Predicate<RefStoreEntry> takeWhilePredicate = limit > 0 && limit < Integer.MAX_VALUE
                ? refStoreEntry ->
                consumedCount.incrementAndGet() <= limit
                : null;

        final List<RefStoreEntry> list = new ArrayList<>();
        consumeEntries(filter, takeWhilePredicate, list::add);
        return list;
    }
For use in testing at SMALL scale. Dumps the content of each DB to the logger.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/RefDataOffHeapStore.java