Package io.rxson

Class RxSON.Builder

java.lang.Object
io.rxson.RxSON.Builder
Enclosing class:
RxSON

public static final class RxSON.Builder
extends Object
Builder for RxSON
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • client

      public RxSON.Builder client​(HttpClient client)
    • jsonSurfer

      public RxSON.Builder jsonSurfer​(org.jsfr.json.JsonSurfer surfer)
      Parameters:
      surfer - JsonSurfer to be used
    • n

      public RxSON.Builder n​(long n)
      Adds the given number n of items to the current unfulfilled demand for this subscription. If n is less than or equal to zero, the Subscriber will receive an onError signal with an IllegalArgumentException argument. Otherwise, the Subscriber will receive up to n additional onNext invocations (or fewer if terminated).
      Parameters:
      n - the increment of demand; a value of Long.MAX_VALUE may be considered as effectively unbounded
    • build

      public RxSON build()
      Build and return an instance of RxSON
      Returns:
      RxSON