Class ReactiveSubscriber<T>

java.lang.Object
io.rxson.rxrest.FlowSubscriber
io.rxson.rxrest.ReactiveSubscriber<T>
Type Parameters:
T - the subscribed item type

A 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
  • Constructor Details

    • ReactiveSubscriber

      public ReactiveSubscriber​(Class<T> clazz, org.jsfr.json.JsonSurfer surfer)
      Parameters:
      clazz - Target class
      surfer - the JsonSurfer provider (e.g., JacksonParser.INSTANCE)
  • Method Details

    • getStreamInstance

      public T getStreamInstance()
      Get the model instance with Flowable fields
      Returns:
      T the subscribed item type
    • getRxPaths

      public Collection<Streamable> getRxPaths()