T
- Subscriber typepublic class PushSubscriber<T>
extends java.lang.Object
implements org.reactivestreams.Subscriber<T>
PushSubscriber<Integer> ints = PushSubscriber.subscriber();
ReactiveSeq.of(1,2,3)
.publish(ints);
ListX list = ints.toListX();
Constructor and Description |
---|
PushSubscriber() |
Modifier and Type | Method and Description |
---|---|
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
ReactiveSeq<T> |
stream() |
static <T> PushSubscriber<T> |
subscriber() |
public static <T> PushSubscriber<T> subscriber()
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 ReactiveSeq<T> stream()