public final class BlockingSubscriber<T>
extends java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscription>
implements org.reactivestreams.Subscriber<T>, org.reactivestreams.Subscription
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
TERMINATED |
| Constructor and Description |
|---|
BlockingSubscriber(java.util.Queue<java.lang.Object> queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
boolean |
isCancelled() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
request(long n) |
public BlockingSubscriber(java.util.Queue<java.lang.Object> queue)
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 request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic boolean isCancelled()