Interface StreamSource<R>
-
- All Known Implementing Classes:
BlockingQueueStreamSource
public interface StreamSource<R>Defines a source of streaming data. A StreamSource implementation is used byBaseStreamStepwhen loading data from an external stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Signals this stream is no longer in use and can clean up resources.io.reactivex.Flowable<R>flowable()Returns the rows of data as an iterable.voidopen()Open the source for loading rows.voidpause()Causes the stream to stop accepting new input.voidresume()Resumes accepting input if paused, otherwise noop.
-
-
-
Method Detail
-
flowable
io.reactivex.Flowable<R> flowable()
Returns the rows of data as an iterable.
-
close
void close()
Signals this stream is no longer in use and can clean up resources.
-
pause
void pause()
Causes the stream to stop accepting new input.
-
resume
void resume()
Resumes accepting input if paused, otherwise noop.
-
open
void open()
Open the source for loading rows. Used for initializing resources required to load the stream.
-
-