A B C D E F G H I L M N O P R S T 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 send 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
- 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
-
Unless already closed, issues
onErrorsignals to current subscribers with the given error, and disallows subsequent attempts to publish. - 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. - 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
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.
- 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 class io.helidon.common.reactive.valve.Valves
-
Returns an empty
Valve- instance, which report complete as soon as handler is registered. - 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
- 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 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 class io.helidon.common.reactive.SingleSubscriberHolder
-
Get the stored subscriber.
- getNumberOfSubscribers() - Method in class io.helidon.common.reactive.SubmissionPublisher
-
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
-
Returns true if this publisher has any subscribers.
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.
- isEmpty() - Method in class io.helidon.common.reactive.valve.Tank
- iterator() - Method in class io.helidon.common.reactive.valve.Tank
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(Function<T, K>) - Method in interface io.helidon.common.reactive.valve.Valve
- moreData() - Method in class io.helidon.common.reactive.valve.InputStreamValve
N
- 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
-
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.
- OutputStreamPublisher - Class in io.helidon.common.reactive
-
Output stream that
publishesany 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
-
Return a
Publisherfrom aFlow.Publisher. - publisherToFlow(Publisher<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
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
-
Static utility methods for converting between Helidon reactive API
Flowand reactive-streams. - 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
- 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
- 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
-
A
Flow.Publisherthat asynchronously issues submitted (non-null) items to current subscribers until it is closed. - SubmissionPublisher() - Constructor for class io.helidon.common.reactive.SubmissionPublisher
-
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
-
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
-
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
-
Publishes the given item to each current subscriber.
- 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.SubmissionPublisher
-
Adds the given Subscriber.
- subscriberFromFlow(Flow.Subscriber<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
Return a
Subscriberfrom aFlow.Subscriber. - subscriberToFlow(Subscriber<T>) - Static method in class io.helidon.common.reactive.ReactiveStreamsAdapter
-
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. - 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.
V
- 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.
- 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