T
- public class FutureStreamSubscriber<T>
extends java.lang.Object
implements org.reactivestreams.Subscriber<T>
FutureStreamSubscriber<Long> sub = new FutureStreamSubscriber<>();
reactivePublisher.subscribe(sub);
LazyFutureStream<Long> stream = sub.getStream();
Modifier and Type | Field and Description |
---|---|
protected Queue |
queue |
protected LazyFutureStream |
stream |
Constructor and Description |
---|
FutureStreamSubscriber() |
Modifier and Type | Method and Description |
---|---|
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
protected LazyFutureStream |
stream() |
protected Queue queue
protected LazyFutureStream stream
protected LazyFutureStream stream()
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>