public class StreamSource
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> LazyFutureStream<T> |
futureStream(Adapter<T> adapter,
LazyReact react)
Create a LazyFutureStream.
|
<T> PushableLazyFutureStream<T> |
futureStream(LazyReact s)
Create a pushable LazyFutureStream using the supplied ReactPool
|
static StreamSource |
of(int backPressureAfter) |
static StreamSource |
of(QueueFactory<?> q) |
static <T> MultipleStreamSource<T> |
ofMultiple() |
static <T> MultipleStreamSource<T> |
ofMultiple(int backPressureAfter) |
static <T> MultipleStreamSource<T> |
ofMultiple(QueueFactory<?> q) |
static StreamSource |
ofUnbounded() |
<T> PushableReactiveSeq<T> |
reactiveSeq()
Create a pushable org.jooq.lambda.Seq
|
static <T> ReactiveSeq<T> |
reactiveSeq(Adapter<T> adapter)
Create a pushable org.jooq.lambda.Seq
|
<T> PushableStream<T> |
stream()
Create a pushable JDK 8 Stream
|
static <T> java.util.stream.Stream<T> |
stream(Adapter<T> adapter)
Create a JDK 8 Stream from the supplied Adapter
|
public static <T> MultipleStreamSource<T> ofMultiple()
public static <T> MultipleStreamSource<T> ofMultiple(int backPressureAfter)
public static <T> MultipleStreamSource<T> ofMultiple(QueueFactory<?> q)
public static StreamSource of(QueueFactory<?> q)
public static StreamSource ofUnbounded()
public static StreamSource of(int backPressureAfter)
public <T> PushableLazyFutureStream<T> futureStream(LazyReact s)
s
- ReactPool to use to create the Streampublic static <T> LazyFutureStream<T> futureStream(Adapter<T> adapter, LazyReact react)
adapter
- Adapter to create a LazyFutureStream frompublic <T> PushableStream<T> stream()
public <T> PushableReactiveSeq<T> reactiveSeq()
public static <T> java.util.stream.Stream<T> stream(Adapter<T> adapter)
adapter
- Adapter to create a Steam frompublic static <T> ReactiveSeq<T> reactiveSeq(Adapter<T> adapter)
adapter
- Adapter to create a Seq from