T - the type of elements returned by this Spliterator.public interface BlockingSpliterator<T>
extends java.util.Spliterator<T>, java.lang.AutoCloseable
Spliterator which supports AutoCloseable.close().| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is used to communicate that you are no longer interested in consuming data.
|
BlockingSpliterator<T> |
trySplit() |
BlockingSpliterator<T> trySplit()
trySplit in interface java.util.Spliterator<T>void close()
throws java.lang.Exception
Spliterator.
If all the data has not been consumed this may have transport implications (e.g. if the source of data comes from
a socket or file descriptor). If all data has been consumed, or this BlockingIterator has previously
been closed this should be a noop.
close in interface java.lang.AutoCloseablejava.lang.Exception