Package io.rxson.rxrest
Class ReactiveSubscriber<T>
java.lang.Object
io.rxson.rxrest.FlowSubscriber
io.rxson.rxrest.ReactiveSubscriber<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 ReactiveSubscriber<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 ReactiveSubscriber(Class<T> clazz, org.jsfr.json.JsonSurfer surfer)
-
Method Summary
Modifier and Type Method Description Collection<Streamable>
getRxPaths()
T
getStreamInstance()
Get the model instance with Flowable fieldsMethods inherited from class io.rxson.rxrest.FlowSubscriber
getN, onComplete, onError, onNext, onSubscribe, setN
-
Constructor Details
-
ReactiveSubscriber
- Parameters:
clazz
- Target classsurfer
- the JsonSurfer provider (e.g., JacksonParser.INSTANCE)
-
-
Method Details
-
getStreamInstance
Get the model instance with Flowable fields- Returns:
- T the subscribed item type
-
getRxPaths
-