Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close this adapter
|
boolean |
fromStream(java.util.stream.Stream<T> stream) |
default LazyFutureStream<T> |
futureStream() |
default LazyFutureStream<T> |
futureStream(LazyReact reactor)
Generate a LazyFutureStream from the data that is passed to this Adapter using the supplied LazyReact futureStream builder
|
default Matchable.MXor<Queue<T>,Topic<T>> |
matches() |
boolean |
offer(T data)
Offer a single datapoint to this adapter
|
ReactiveSeq<T> |
stream() |
ReactiveSeq<T> |
stream(Continueable s) |
ReactiveSeq<java.util.concurrent.CompletableFuture<T>> |
streamCompletableFutures() |
<R> R |
visit(java.util.function.Function<? super Queue<T>,? extends R> caseQueue,
java.util.function.Function<? super Topic<T>,? extends R> caseTopic)
Conditionally execute one of the supplied function depending on whether or not this Adapter is a Queue or a Topic
|
default Matchable.MXor<Queue<T>,Topic<T>> matches()
<R> R visit(java.util.function.Function<? super Queue<T>,? extends R> caseQueue, java.util.function.Function<? super Topic<T>,? extends R> caseTopic)
caseQueue
- Function to execute if this Adapter is a QueuecaseTopic
- Function to execute if this Adapter is a Topicboolean offer(T data)
data
- data to addboolean fromStream(java.util.stream.Stream<T> stream)
stream
- Input data from provided Streamdefault LazyFutureStream<T> futureStream(LazyReact reactor)
reactor
- FutureStream builder used to determine parallelism and other settings for the created FutureStreamdefault LazyFutureStream<T> futureStream()
Adapter#futureStream(LazyReact)
ReactiveSeq<T> stream()
ReactiveSeq<T> stream(Continueable s)
ReactiveSeq<java.util.concurrent.CompletableFuture<T>> streamCompletableFutures()
boolean close()