Package io.rxson.rxrest
Class MonoReactiveSubscriber<T>
java.lang.Object
io.rxson.rxrest.FlowSubscriber
io.rxson.rxrest.MonoReactiveSubscriber<T>
- Type Parameters:
T
- the subscribed item typeA receiver of http messages (stream chunks), and Publisher of chunks as POJOs accordingly
- All Implemented Interfaces:
Flow.Subscriber<List<ByteBuffer>>
public final class MonoReactiveSubscriber<T> extends FlowSubscriber
- Author:
- Mohamed Aly Bou Hanane © 2020
-
Field Summary
Fields inherited from class io.rxson.rxrest.FlowSubscriber
n, nonBlockingParser, subscription, surfer
-
Constructor Summary
Constructors Constructor Description MonoReactiveSubscriber(Class<T> clazz, org.jsfr.json.JsonSurfer surfer, String jsonPath)
-
Method Summary
Modifier and Type Method Description Collection<Streamable>
getRxPaths()
FlowablePath<T>
getStreamInstance()
Get the instance of Target typeMethods inherited from class io.rxson.rxrest.FlowSubscriber
getN, onComplete, onError, onNext, onSubscribe, setN
-
Constructor Details
-
MonoReactiveSubscriber
- Parameters:
clazz
- Target classsurfer
- the JsonSurfer provider (e.g., JacksonParser.INSTANCE)jsonPath
- json path expression (e.g., $[*].Airport)
-
-
Method Details
-
getStreamInstance
Get the instance of Target type- Returns:
- FlowablePath of target type
-
getRxPaths
-