Top Description Methods
org.jooq

public Interface Publisher<T>

extends Publisher<T>, Flow.Publisher<T>
Known Direct Subinterfaces
org.jooq.ResultQuery, org.jooq.Batch, org.jooq.RowCountQuery
Annotations
@FunctionalInterface
Imports
java.util.concurrent.Flow, java.util.function.Consumer, org.reactivestreams.FlowAdapters, .Subscriber, .Subscription

A bridge from java.util.concurrent.Flow.Publisher to org.reactivestreams.Publisher for compatibility purposes.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public default void
subscribe(Flow.Subscriber<? super T>
the subscriber
subscriber
)

Implements java.util.concurrent.Flow.Publisher.subscribe.

Adds the given Subscriber if possible.
Inherited from org.reactivestreams.Publisher:
subscribe

Method Detail

subscribeback to summary
public default void subscribe(Flow.Subscriber<? super T> subscriber)

Implements java.util.concurrent.Flow.Publisher.subscribe.

Doc from java.util.concurrent.Flow.Publisher.subscribe.

Adds the given Subscriber if possible. If already subscribed, or the attempt to subscribe fails due to policy violations or errors, the Subscriber's onError method is invoked with an IllegalStateException. Otherwise, the Subscriber's onSubscribe method is invoked with a new Subscription. Subscribers may enable receiving items by invoking the request method of this Subscription, and may unsubscribe by invoking its cancel method.

Parameters
subscriber:Flow.Subscriber<? super T>

the subscriber

Annotations
@Override