T
- public class QueueBasedSubscriber<T>
extends java.lang.Object
implements org.reactivestreams.Subscriber<T>
Modifier and Type | Class and Description |
---|---|
static class |
QueueBasedSubscriber.Counter |
Constructor and Description |
---|
QueueBasedSubscriber(QueueBasedSubscriber.Counter counter,
int maxConcurrency) |
Modifier and Type | Method and Description |
---|---|
void |
addContinuation(Continuation c) |
void |
close() |
LazyFutureStream<T> |
futureStream() |
java.util.stream.Stream<T> |
jdkStream() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
ReactiveSeq<T> |
reactiveSeq() |
static <T> QueueBasedSubscriber<T> |
subscriber(Queue<T> q,
QueueBasedSubscriber.Counter counter,
int maxConcurrency) |
static <T> QueueBasedSubscriber<T> |
subscriber(QueueBasedSubscriber.Counter counter,
int maxConcurrency) |
static <T> QueueBasedSubscriber<T> |
subscriber(QueueFactory<T> factory,
QueueBasedSubscriber.Counter counter,
int maxConcurrency) |
public QueueBasedSubscriber(QueueBasedSubscriber.Counter counter, int maxConcurrency)
public static <T> QueueBasedSubscriber<T> subscriber(QueueBasedSubscriber.Counter counter, int maxConcurrency)
public static <T> QueueBasedSubscriber<T> subscriber(Queue<T> q, QueueBasedSubscriber.Counter counter, int maxConcurrency)
public static <T> QueueBasedSubscriber<T> subscriber(QueueFactory<T> factory, QueueBasedSubscriber.Counter counter, int maxConcurrency)
public LazyFutureStream<T> futureStream()
public java.util.stream.Stream<T> jdkStream()
public ReactiveSeq<T> reactiveSeq()
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe
in interface org.reactivestreams.Subscriber<T>
public void onError(java.lang.Throwable t)
onError
in interface org.reactivestreams.Subscriber<T>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<T>
public void close()
public void addContinuation(Continuation c)