Class TypedPublisher<T>
- java.lang.Object
-
- de.codecentric.reedelk.runtime.api.message.content.TypedPublisher<T>
-
- Type Parameters:
T- the type of the data inside the wrapped stream.
- All Implemented Interfaces:
org.reactivestreams.Publisher<T>
public class TypedPublisher<T> extends Object implements org.reactivestreams.Publisher<T>
A publisher wrapper carrying information about the class type of the stream content. This is needed to properly convert results from the evaluation of a script to the correct desired type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> TypedPublisher<T>from(org.reactivestreams.Publisher<T> delegate, Class<T> clazz)static TypedPublisher<Boolean>fromBoolean(org.reactivestreams.Publisher<Boolean> delegate)static TypedPublisher<byte[]>fromByteArray(org.reactivestreams.Publisher<byte[]> delegate)static TypedPublisher<Double>fromDouble(org.reactivestreams.Publisher<Double> delegate)static TypedPublisher<Float>fromFloat(org.reactivestreams.Publisher<Float> delegate)static TypedPublisher<Integer>fromInteger(org.reactivestreams.Publisher<Integer> delegate)static <T> TypedPublisher<T>fromObject(org.reactivestreams.Publisher<T> delegate, Class<T> clazz)static TypedPublisher<String>fromString(org.reactivestreams.Publisher<String> delegate)static TypedPublisher<Void>fromVoid(org.reactivestreams.Publisher<Void> delegate)Class<T>getType()voidsubscribe(org.reactivestreams.Subscriber<? super T> subscriber)
-
-
-
Method Detail
-
from
public static <T> TypedPublisher<T> from(org.reactivestreams.Publisher<T> delegate, Class<T> clazz)
-
fromString
public static TypedPublisher<String> fromString(org.reactivestreams.Publisher<String> delegate)
-
fromByteArray
public static TypedPublisher<byte[]> fromByteArray(org.reactivestreams.Publisher<byte[]> delegate)
-
fromFloat
public static TypedPublisher<Float> fromFloat(org.reactivestreams.Publisher<Float> delegate)
-
fromInteger
public static TypedPublisher<Integer> fromInteger(org.reactivestreams.Publisher<Integer> delegate)
-
fromDouble
public static TypedPublisher<Double> fromDouble(org.reactivestreams.Publisher<Double> delegate)
-
fromBoolean
public static TypedPublisher<Boolean> fromBoolean(org.reactivestreams.Publisher<Boolean> delegate)
-
fromVoid
public static TypedPublisher<Void> fromVoid(org.reactivestreams.Publisher<Void> delegate)
-
fromObject
public static <T> TypedPublisher<T> fromObject(org.reactivestreams.Publisher<T> delegate, Class<T> clazz)
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<T>
-
-