public class Closeables extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> CloseableIterator<E> |
iterator(org.reactivestreams.Publisher<E> publisher,
int fetchSize)
Deprecated.
since 11.0 Please use
Closeables.iterator(Publisher, int) instead. |
@Deprecated public static <E> CloseableIterator<E> iterator(org.reactivestreams.Publisher<E> publisher, int fetchSize)
Closeables.iterator(Publisher, int) instead.Publisher to a CloseableIterator by utilizing items fetched into an array and
refetched as they are consumed from the iterator. The iterator when closed will also close the underlying
Subscription when subscribed to the publisher.E - value typepublisher - the publisher to convertfetchSize - how many entries to hold in memory at once in preparation for the iterators consumptionCopyright © 2021 JBoss by Red Hat. All rights reserved.