public static <K, V> Set<MarshalledEntry<K, V>> allEntries(AdvancedLoadWriteStore<K, V> cl, Predicate<K> filter) { return Flowable.fromPublisher(cl.publishEntries(filter, true, true)) .collectInto(new HashSet<MarshalledEntry<K, V>>(), Set::add) .blockingGet(); }