A B C D E F G H I J L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(T) - Method in class io.helidon.common.reactive.valve.Tank
- addAll(Collection<? extends T>) - Method in class io.helidon.common.reactive.valve.Tank
B
- byteBuffer2Collector() - Static method in class io.helidon.common.reactive.valve.InputStreamValve
-
A collector of
ByteBufferinstances into a singleByteBufferinstance. - byteBufferByteArrayCollector() - Static method in class io.helidon.common.reactive.valve.InputStreamValve
-
A collector of
ByteBufferinstances into a single byte array. - byteBufferStringCollector(Charset) - Static method in class io.helidon.common.reactive.valve.InputStreamValve
-
A collector of
ByteBufferinstances into aStringof the provided charset.
C
- cancel() - Method in interface io.helidon.common.reactive.Flow.Subscription
-
Causes the Subscriber to (eventually) stop receiving messages.
- cancel() - Method in class io.helidon.common.reactive.SingleSubscriberHolder
-
Hard cancel - nothing is sent to the subscriber but subscription is considered as canceled.
- clear() - Method in class io.helidon.common.reactive.valve.Tank
- close() - Method in class io.helidon.common.reactive.OutputStreamPublisher
- close() - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.
- close() - Method in class io.helidon.common.reactive.valve.Tank
- close(Consumer<Flow.Subscriber<? super T>>) - Method in class io.helidon.common.reactive.SingleSubscriberHolder
-
Mark the subscriber holder as closed.
- closeExceptionally(Throwable) - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Unless already closed, issues
onErrorsignals to current subscribers with the given error, and disallows subsequent attempts to publish. - collect(Collector<T, U>) - Method in interface io.helidon.common.reactive.Multi
- collect(Collector<? super T, A, R>) - Method in interface io.helidon.common.reactive.valve.Valve
-
Returns a
CompletionStagewhich will be completed when thisValveis completed and result is a collected value. - collect(T) - Method in interface io.helidon.common.reactive.Collector
-
Collect the given item.
- collectList() - Method in interface io.helidon.common.reactive.Multi
- Collector<T,U> - Interface in io.helidon.common.reactive
-
A collector accumulates the items provided when
Collector.collect(java.lang.Object)is invoked and makes them available in a single container object withCollector.value(). - complete() - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Synchronously trigger
Flow.Subscriber.onComplete(). - constant(long) - Static method in interface io.helidon.common.reactive.RetrySchema
-
Creates the retry schema with a constant result.
- contains(Object) - Method in class io.helidon.common.reactive.valve.Tank
- containsAll(Collection<?>) - Method in class io.helidon.common.reactive.valve.Tank
- create() - Static method in class io.helidon.common.reactive.UnboundedSemaphore
-
Create a new instance.
D
- defaultBufferSize() - Static method in class io.helidon.common.reactive.Flow
-
Returns a default value for Publisher or Subscriber buffering, that may be used in the absence of other constraints.
- drain() - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
If not subscribed to, consume all the items from this publisher.
- drain(T) - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Process a drained item.
- drainTo(Collection<? super T>) - Method in class io.helidon.common.reactive.valve.Tank
- drainTo(Collection<? super T>, int) - Method in class io.helidon.common.reactive.valve.Tank
E
- element() - Method in class io.helidon.common.reactive.valve.Tank
- empty() - Static method in interface io.helidon.common.reactive.Multi
-
Get a
Multiinstance that completes immediately. - empty() - Static method in interface io.helidon.common.reactive.Single
-
Get a
Singleinstance that completes immediately. - empty() - Static method in class io.helidon.common.reactive.valve.Valves
-
Returns an empty
Valve- instance, which report complete as soon as handler is registered. - error(Throwable) - Static method in interface io.helidon.common.reactive.Multi
-
Create a
Multiinstance that reports the given exception to its subscriber(s). - error(Throwable) - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Synchronously trigger
Flow.Subscriber.onError(Throwable). - error(Throwable) - Static method in interface io.helidon.common.reactive.Single
-
Create a
Singleinstance that reports the given given exception to its subscriber(s). - executeOn(ExecutorService) - Method in interface io.helidon.common.reactive.valve.Valve
-
Returns new
Valvewhich defer all handlers to providedExecutorService.
F
- filter(Predicate<T>) - Method in interface io.helidon.common.reactive.valve.Valve
- first() - Method in interface io.helidon.common.reactive.Multi
- flatMap(Function<T, Valve<K>>) - Method in interface io.helidon.common.reactive.valve.Valve
-
Returns new
Valveinstance which combines all results into a single Valve. - Flow - Class in io.helidon.common.reactive
-
Interrelated interfaces and static methods for establishing flow-controlled components in which
Publishersproduce items consumed by one or moreSubscribers, each managed by aSubscription. - Flow.Processor<T,R> - Interface in io.helidon.common.reactive
-
A component that acts as both a Subscriber and Publisher.
- Flow.Publisher<T> - Interface in io.helidon.common.reactive
-
A producer of items (and related control messages) received by Subscribers.
- Flow.Subscriber<T> - Interface in io.helidon.common.reactive
-
A receiver of messages.
- Flow.Subscription - Interface in io.helidon.common.reactive
-
Message control linking a
Flow.PublisherandFlow.Subscriber. - flush() - Method in class io.helidon.common.reactive.OutputStreamPublisher
-
Send empty buffer as an indication of a user-requested flush.
- forEach(Consumer<? super T>) - Method in class io.helidon.common.reactive.valve.Tank
- from(Flow.Publisher<T>) - Static method in interface io.helidon.common.reactive.Multi
-
Create a
Multiinstance wrapped around the given publisher. - from(Flow.Publisher<T>) - Static method in interface io.helidon.common.reactive.Single
-
Create a
Singleinstance that publishes the first and only item received from the given publisher. - from(Flow.Publisher<T>) - Static method in class io.helidon.common.reactive.valve.Valves
-
Creates a
Valveinstance from providedFlow.Publisher. - from(InputStream, int) - Static method in class io.helidon.common.reactive.valve.Valves
- from(InputStream, int, ExecutorService) - Static method in class io.helidon.common.reactive.valve.Valves
- from(Iterable<T>) - Static method in class io.helidon.common.reactive.valve.Valves
- from(T...) - Static method in class io.helidon.common.reactive.valve.Valves
-
Creates a
Valveinstance from provided array.
G
- geometric(long, double, long) - Static method in interface io.helidon.common.reactive.RetrySchema
-
Creates the retry schema as a bounded geometric series.
- get() - Method in class io.helidon.common.reactive.RequestedCounter
-
Gets the current requested event counter value.
- get() - Method in interface io.helidon.common.reactive.Single
-
Short-hand for
toFuture().toCompletableFuture().get(). - get() - Method in class io.helidon.common.reactive.SingleSubscriberHolder
-
Get the stored subscriber.
- get(long, TimeUnit) - Method in interface io.helidon.common.reactive.Single
-
Short-hand for
toFuture().toCompletableFuture().get(). - getAndReset() - Method in class io.helidon.common.reactive.RequestedCounter
-
Gets the current requested event counter value and resets it to 0.
- getNumberOfSubscribers() - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Returns the number of current subscribers.
- getThrowable() - Method in class io.helidon.common.reactive.valve.ValveIterator
-
If original
Valveends with error then this method returns cause of such error.
H
- handle(BiConsumer<T, Pausable>) - Method in interface io.helidon.common.reactive.valve.Valve
-
Register data handlers (callbacks).
- handle(BiConsumer<T, Pausable>, Consumer<Throwable>) - Method in interface io.helidon.common.reactive.valve.Valve
-
Register data handlers (callbacks).
- handle(BiConsumer<T, Pausable>, Consumer<Throwable>, Runnable) - Method in class io.helidon.common.reactive.valve.Tank
- handle(BiConsumer<T, Pausable>, Consumer<Throwable>, Runnable) - Method in interface io.helidon.common.reactive.valve.Valve
-
Register data handlers (callbacks).
- handle(Consumer<T>) - Method in interface io.helidon.common.reactive.valve.Valve
-
Register data handlers (callbacks).
- handle(Consumer<T>, Consumer<Throwable>) - Method in interface io.helidon.common.reactive.valve.Valve
-
Register data handlers (callbacks).
- handle(Consumer<T>, Consumer<Throwable>, Runnable) - Method in interface io.helidon.common.reactive.valve.Valve
-
Register data handlers (callbacks).
- hasNext() - Method in class io.helidon.common.reactive.valve.ValveIterator
- hasSubscribers() - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Returns true if this publisher has any subscribers.
- hookOnCancel() - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Hook invoked after calls to
Flow.Subscription.cancel(). - hookOnRequested(long, long) - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Hook invoked after calls to
Flow.Subscription.request(long).
I
- increment(long, Consumer<? super IllegalArgumentException>) - Method in class io.helidon.common.reactive.RequestedCounter
-
Increments safely a requested event counter to prevent
Long.MAX_VALUEoverflow. - InputStreamValve - Class in io.helidon.common.reactive.valve
-
The InputStreamValve is a
ByteBufferbasedValvethat transforms a possibly blockingInputStreaminto the Valve. - io.helidon.common.reactive - package io.helidon.common.reactive
-
Common reactive library for Helidon projects.
- io.helidon.common.reactive.valve - package io.helidon.common.reactive.valve
-
Reactive utilities for Helidon projects.
- isClosed() - Method in class io.helidon.common.reactive.SingleSubscriberHolder
-
Check if this subscriber holder has been closed.
- isCompleted() - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Indicates that the only one possible associated subscriber has been completed.
- isEmpty() - Method in class io.helidon.common.reactive.valve.Tank
- iterator() - Method in class io.helidon.common.reactive.valve.Tank
J
- just(Collection<T>) - Static method in interface io.helidon.common.reactive.Multi
-
Create a
Multiinstance that publishes the given items to a single subscriber. - just(T) - Static method in interface io.helidon.common.reactive.Single
-
Create a
Singleinstance that publishes the given item to its subscriber(s). - just(T...) - Static method in interface io.helidon.common.reactive.Multi
-
Create a
Multiinstance that publishes the given items to a single subscriber.
L
- linear(long, long, long) - Static method in interface io.helidon.common.reactive.RetrySchema
-
Creates the retry schema with a linear delay increment.
M
- map(Mapper<T, U>) - Method in interface io.helidon.common.reactive.Multi
- map(Mapper<T, U>) - Method in interface io.helidon.common.reactive.Single
- map(Function<T, K>) - Method in interface io.helidon.common.reactive.valve.Valve
- mapMany(Mapper<T, Flow.Publisher<U>>) - Method in interface io.helidon.common.reactive.Single
- moreData() - Method in class io.helidon.common.reactive.valve.InputStreamValve
- Multi<T> - Interface in io.helidon.common.reactive
-
Multiple items publisher facility.
N
- never() - Static method in interface io.helidon.common.reactive.Multi
-
Get a
Multiinstance that never completes. - never() - Static method in interface io.helidon.common.reactive.Single
-
Get a
Singleinstance that never completes. - next() - Method in class io.helidon.common.reactive.valve.ValveIterator
- nextDelay(int, long) - Method in interface io.helidon.common.reactive.RetrySchema
-
Returns a delay before next read if the last one poll did not get new data.
O
- offer(T) - Method in class io.helidon.common.reactive.valve.Tank
- offer(T, long, TimeUnit) - Method in class io.helidon.common.reactive.valve.Tank
- offer(T, BiPredicate<Flow.Subscriber<? super T>, ? super T>) - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Publishes the given item to each current subscriber.
- onComplete() - Method in interface io.helidon.common.reactive.Flow.Subscriber
-
Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription.
- onError(Throwable) - Method in interface io.helidon.common.reactive.Flow.Subscriber
-
Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription.
- onNext(T) - Method in interface io.helidon.common.reactive.Flow.Subscriber
-
Method invoked with a Subscription's next item.
- onSubscribe(Flow.Subscription) - Method in interface io.helidon.common.reactive.Flow.Subscriber
-
Method invoked prior to invoking any other Subscriber methods for the given Subscription.
- OriginThreadPublisher<T,U> - Class in io.helidon.common.reactive
-
The OriginThreadPublisher's nature is to always run
Flow.Subscriber.onNext(Object)on the very same thread asOriginThreadPublisher.submit(Object). - OriginThreadPublisher() - Constructor for class io.helidon.common.reactive.OriginThreadPublisher
-
Create same thread publisher.
- OriginThreadPublisher(UnboundedSemaphore) - Constructor for class io.helidon.common.reactive.OriginThreadPublisher
-
Create same thread publisher.
- OutputStreamPublisher - Class in io.helidon.common.reactive
-
Output stream that
Flow.Publisherpublishes any data written to it asByteBufferevents. - OutputStreamPublisher() - Constructor for class io.helidon.common.reactive.OutputStreamPublisher
P
- Pausable - Interface in io.helidon.common.reactive.valve
- pause() - Method in interface io.helidon.common.reactive.valve.Pausable
-
Pause data chunks flow until
Pausable.resume(). - pause() - Method in class io.helidon.common.reactive.valve.Tank
- peek() - Method in class io.helidon.common.reactive.valve.Tank
- peek(Consumer<T>) - Method in interface io.helidon.common.reactive.valve.Valve
- poll() - Method in class io.helidon.common.reactive.valve.Tank
- poll(long, TimeUnit) - Method in class io.helidon.common.reactive.valve.Tank
- publisherFromFlow(Flow.Publisher<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
Deprecated.Return a
Publisherfrom aFlow.Publisher. - publisherToFlow(Publisher<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
Deprecated.Return a
Flow.Publisherfrom aPublisher. - put(T) - Method in class io.helidon.common.reactive.valve.Tank
-
Inserts the specified element at the tail of this queue, waiting for space to become available if the queue is full.
R
- ReactiveStreamsAdapter - Class in io.helidon.common.reactive
-
Deprecated.This class will be removed in the next major release.
- register(Flow.Subscriber<? super T>) - Method in class io.helidon.common.reactive.SingleSubscriberHolder
-
Register a new subscriber.
- remainingCapacity() - Method in class io.helidon.common.reactive.valve.Tank
- remove() - Method in class io.helidon.common.reactive.valve.Tank
- remove(Object) - Method in class io.helidon.common.reactive.valve.Tank
- removeAll(Collection<?>) - Method in class io.helidon.common.reactive.valve.Tank
- removeIf(Predicate<? super T>) - Method in class io.helidon.common.reactive.valve.Tank
- request(long) - Method in interface io.helidon.common.reactive.Flow.Subscription
-
Adds the given number
nof items to the current unfulfilled demand for this subscription. - RequestedCounter - Class in io.helidon.common.reactive
-
Requested event counter.
- RequestedCounter() - Constructor for class io.helidon.common.reactive.RequestedCounter
- requiresMoreItems() - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Indicate that more items should be published in order to meet the current demand of the subscriber.
- resume() - Method in interface io.helidon.common.reactive.valve.Pausable
-
Resume data chunks flow after
Pausable.pause(). - resume() - Method in class io.helidon.common.reactive.valve.Tank
- retainAll(Collection<?>) - Method in class io.helidon.common.reactive.valve.Tank
- RetrySchema - Interface in io.helidon.common.reactive
-
Defines delay for next read/poll operation in a polling
publisher.
S
- signalCloseComplete(Throwable) - Method in class io.helidon.common.reactive.OutputStreamPublisher
-
Signals this publishing output stream that it can safely return from otherwise blocking invocation to it's
OutputStreamPublisher.close()method. - Single<T> - Interface in io.helidon.common.reactive
-
Single item publisher utility.
- SingleSubscriberHolder<T> - Class in io.helidon.common.reactive
-
A subscriber container that accepts only a single, one-time subscriber registration.
- SingleSubscriberHolder() - Constructor for class io.helidon.common.reactive.SingleSubscriberHolder
- size() - Method in class io.helidon.common.reactive.valve.Tank
- spliterator() - Method in class io.helidon.common.reactive.valve.Tank
- SubmissionPublisher<T> - Class in io.helidon.common.reactive
-
Deprecated.This class will be removed in the next major release.
- SubmissionPublisher() - Constructor for class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Creates a new SubmissionPublisher using the current thread for delivery to subscribers, with maximum buffer capacity of
Flow.defaultBufferSize(). - SubmissionPublisher(int) - Constructor for class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Creates a new SubmissionPublisher using the current thread for delivery to subscribers, with the given maximum buffer size for each subscriber.
- SubmissionPublisher(Executor, int) - Constructor for class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Creates a new SubmissionPublisher using the given Executor for async delivery to subscribers, with the given maximum buffer size for each subscriber.
- submit(T) - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Publishes the given item to each current subscriber.
- submit(U) - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Submit the data to the subscriber.
- Subscribable<T> - Interface in io.helidon.common.reactive
-
Decorated publisher that allows subscribing to individual events with java functions.
- subscribe(Flow.Subscriber<? super ByteBuffer>) - Method in class io.helidon.common.reactive.OutputStreamPublisher
- subscribe(Flow.Subscriber<? super T>) - Method in interface io.helidon.common.reactive.Flow.Publisher
-
Adds the given Subscriber if possible.
- subscribe(Flow.Subscriber<? super T>) - Method in class io.helidon.common.reactive.OriginThreadPublisher
- subscribe(Flow.Subscriber<? super T>) - Method in class io.helidon.common.reactive.SubmissionPublisher
-
Deprecated.Adds the given Subscriber.
- subscribe(Consumer<? super T>) - Method in interface io.helidon.common.reactive.Subscribable
-
Subscribe to this
Singleinstance with the given delegate functions. - subscribe(Consumer<? super T>, Consumer<? super Throwable>) - Method in interface io.helidon.common.reactive.Subscribable
-
Subscribe to this
Singleinstance with the given delegate functions. - subscribe(Consumer<? super T>, Consumer<? super Throwable>, Runnable) - Method in interface io.helidon.common.reactive.Subscribable
-
Subscribe to this
Singleinstance with the given delegate functions. - subscribe(Consumer<? super T>, Consumer<? super Throwable>, Runnable, Consumer<? super Flow.Subscription>) - Method in interface io.helidon.common.reactive.Subscribable
-
Subscribe to this
Singleinstance with the given delegate functions. - subscriberFromFlow(Flow.Subscriber<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
Deprecated.Return a
Subscriberfrom aFlow.Subscriber. - subscriberToFlow(Subscriber<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
Deprecated.Return a
Flow.Subscriberfrom aSubscriber.
T
- take() - Method in class io.helidon.common.reactive.valve.Tank
- Tank<T> - Class in io.helidon.common.reactive.valve
-
Tank of events is a closeable FIFO queue with a limited size implementing
Valvereactive API. - Tank(int) - Constructor for class io.helidon.common.reactive.valve.Tank
-
Creates new instance.
- toArray() - Method in class io.helidon.common.reactive.valve.Tank
- toArray(T1[]) - Method in class io.helidon.common.reactive.valve.Tank
- toIterator() - Method in interface io.helidon.common.reactive.valve.Valve
-
Transforms this
ValveintoValveIteratorrepresentation. - toPublisher() - Method in interface io.helidon.common.reactive.valve.Valve
-
Transforms this
ValveintoFlow.Publisherrepresentation. - toStage() - Method in interface io.helidon.common.reactive.Single
-
Exposes this
Singleinstance as aCompletionStage. - tryAcquire() - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
In a non-blocking manner, try to acquire an allowance to publish next item.
- tryAcquire() - Method in class io.helidon.common.reactive.UnboundedSemaphore
-
In a non-blocking manner, try to acquire a single permit.
- tryDecrement() - Method in class io.helidon.common.reactive.RequestedCounter
-
Tries to safely decrement a positive requested counter value, making sure the value does not drop below zero.
U
- UnboundedSemaphore - Class in io.helidon.common.reactive
-
The UnboundedSemaphore is designed to fit Reactive Streams use-case; that is to be able to allow an unbounded number of acquires once a cumulative release count reaches
Long.MAX_VALUE.
V
- value() - Method in interface io.helidon.common.reactive.Collector
-
Get the collected items container.
- Valve<T> - Interface in io.helidon.common.reactive.valve
- ValveIterator<T> - Class in io.helidon.common.reactive.valve
- Valves - Class in io.helidon.common.reactive.valve
-
An utility class for
Valveinterface.
W
- whenDrain(Runnable) - Method in class io.helidon.common.reactive.valve.Tank
-
Provided handler is called a single time when internal capacity is maximally half full and instance is not closed.
- wrap(U) - Method in class io.helidon.common.reactive.OriginThreadPublisher
-
Wrap the submitted data into an item that can be published.
- write(byte[]) - Method in class io.helidon.common.reactive.OutputStreamPublisher
- write(byte[], int, int) - Method in class io.helidon.common.reactive.OutputStreamPublisher
- write(int) - Method in class io.helidon.common.reactive.OutputStreamPublisher
All Classes All Packages