Package | Description |
---|---|
org.glassfish.jersey.internal.jsr166 |
Contains a subset of classes repackaged from the jsr166 written by Doug Lea.
|
Modifier and Type | Class and Description |
---|---|
class |
SubmissionPublisher<T>
A
Flow.Publisher that asynchronously issues submitted
(non-null) items to current subscribers until it is closed. |
Modifier and Type | Method and Description |
---|---|
static <T> SubmittableFlowPublisher<T> |
SubmissionPublisherFactory.createSubmissionPublisher()
Creates a new SubmittableFlowPublisher using the
ForkJoinPool.commonPool() for async delivery to subscribers
(unless it does not support a parallelism level of at least two,
in which case, a new Thread is created to run each task), with
maximum buffer capacity of Flow.defaultBufferSize() , and no
handler for Subscriber exceptions in method onNext . |
static <T> SubmittableFlowPublisher<T> |
SubmissionPublisherFactory.createSubmissionPublisher(Executor executor,
int maxBufferCapacity)
Creates a new Jdk9SubmissionPublisher using the given Executor for
async delivery to subscribers, with the given maximum buffer size
for each subscriber, and no handler for Subscriber exceptions in
method
onNext . |
static <T> SubmittableFlowPublisher<T> |
SubmissionPublisherFactory.createSubmissionPublisher(Executor executor,
int maxBufferCapacity,
BiConsumer<? super Flow.Subscriber<? super T>,? super Throwable> handler)
Creates a new SubmittableFlowPublisher using the given Executor for
async delivery to subscribers, with the given maximum buffer size
for each subscriber, and, if non-null, the given handler invoked
when any Subscriber throws an exception in method
onNext . |
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.