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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RxSON
build()
Build and return an instance ofRxSON
RxSON.Builder
client(HttpClient client)
RxSON.Builder
jsonSurfer(org.jsfr.json.JsonSurfer surfer)
RxSON.Builder
n(long n)
Adds the given numbern
of items to the current unfulfilled demand for this subscription.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client
-
jsonSurfer
- Parameters:
surfer
- JsonSurfer to be used
-
n
Adds the given numbern
of items to the current unfulfilled demand for this subscription. Ifn
is less than or equal to zero, the Subscriber will receive anonError
signal with anIllegalArgumentException
argument. Otherwise, the Subscriber will receive up ton
additionalonNext
invocations (or fewer if terminated).- Parameters:
n
- the increment of demand; a value ofLong.MAX_VALUE
may be considered as effectively unbounded
-
build
Build and return an instance ofRxSON
- Returns:
- RxSON
-