java.lang.Object
org.jooq.impl.DefaultSubscriberProvider<C>
- All Implemented Interfaces:
SubscriberProvider<C>
A default, context unaware implementation of the
SubscriberProvider
SPI.- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal C
context()
Create an empty context.final C
context
(org.reactivestreams.Subscriber<?> subscriber) Extract a context from an existingSubscriber
.final <T> org.reactivestreams.Subscriber
<T> subscriber
(Consumer<? super org.reactivestreams.Subscription> onSubscribe, Consumer<? super T> onNext, Consumer<? super Throwable> onError, Runnable onComplete, C context) Create a new subscriber from its component implementations and a previous context.
-
Constructor Details
-
DefaultSubscriberProvider
public DefaultSubscriberProvider()
-
-
Method Details
-
context
Description copied from interface:SubscriberProvider
Create an empty context.- Specified by:
context
in interfaceSubscriberProvider<C>
-
context
Description copied from interface:SubscriberProvider
Extract a context from an existingSubscriber
.- Specified by:
context
in interfaceSubscriberProvider<C>
-
subscriber
public final <T> org.reactivestreams.Subscriber<T> subscriber(Consumer<? super org.reactivestreams.Subscription> onSubscribe, Consumer<? super T> onNext, Consumer<? super Throwable> onError, Runnable onComplete, C context) Description copied from interface:SubscriberProvider
Create a new subscriber from its component implementations and a previous context.- Specified by:
subscriber
in interfaceSubscriberProvider<C>
- Parameters:
onSubscribe
- The implementation ofSubscriber.onSubscribe(Subscription)
onNext
- The implementation ofSubscriber.onNext(Object)
onError
- The implementation ofSubscriber.onError(Throwable)
onComplete
- The implementation ofSubscriber.onComplete()
context
- TheSubscriberProvider.context()
-