public class JavaslangValueSubscriber<T>
extends java.lang.Object
implements org.reactivestreams.Subscriber<T>
| Constructor and Description |
|---|
JavaslangValueSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
javaslang.control.Either<java.lang.Throwable,T> |
either() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
javaslang.control.Option<T> |
option() |
static <T> JavaslangValueSubscriber<T> |
subscriber()
A reactive-streams subscriber that can generate a Javaslang value type
|
javaslang.control.Try<T> |
tryValue() |
public static <T> JavaslangValueSubscriber<T> subscriber()
public javaslang.control.Option<T> option()
public javaslang.control.Try<T> tryValue()
public javaslang.control.Either<java.lang.Throwable,T> either()
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>