Package org.streamingpool.core.domain
Class ErrorStreamPair<T>
- java.lang.Object
-
- org.streamingpool.core.domain.ErrorStreamPair<T>
-
public abstract class ErrorStreamPair<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ErrorStreamPair()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.reactivestreams.Publisher<T>data()static <T> ErrorStreamPair<T>empty()abstract org.reactivestreams.Publisher<java.lang.Throwable>error()abstract booleanisPresent()static <T> ErrorStreamPair<T>ofData(org.reactivestreams.Publisher<T> dataStream)static <T> ErrorStreamPair<T>ofDataError(org.reactivestreams.Publisher<T> dataStream, org.reactivestreams.Publisher<java.lang.Throwable> errorStream)
-
-
-
Method Detail
-
data
public abstract org.reactivestreams.Publisher<T> data()
-
error
public abstract org.reactivestreams.Publisher<java.lang.Throwable> error()
-
isPresent
public abstract boolean isPresent()
-
empty
public static final <T> ErrorStreamPair<T> empty()
-
ofDataError
public static final <T> ErrorStreamPair<T> ofDataError(org.reactivestreams.Publisher<T> dataStream, org.reactivestreams.Publisher<java.lang.Throwable> errorStream)
-
ofData
public static final <T> ErrorStreamPair<T> ofData(org.reactivestreams.Publisher<T> dataStream)
-
-