Modifier and Type | Method and Description |
---|---|
void |
addContinuation(Continuation cont) |
boolean |
close()
Close this adapter
|
<R> R |
fold(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
|
boolean |
fromStream(java.util.stream.Stream<T> stream) |
default Either<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() |
void addContinuation(Continuation cont)
default Either<Queue<T>,Topic<T>> matches()
<R> R fold(java.util.function.Function<? super Queue<T>,? extends R> caseQueue, java.util.function.Function<? super Topic<T>,? extends R> caseTopic)
boolean offer(T data)
data
- data to addboolean fromStream(java.util.stream.Stream<T> stream)
stream
- Input data from provided StreamReactiveSeq<T> stream()
ReactiveSeq<T> stream(Continueable s)
ReactiveSeq<java.util.concurrent.CompletableFuture<T>> streamCompletableFutures()
boolean close()