| Package | Description |
|---|---|
| io.helidon.common.reactive.valve |
Reactive utilities for Helidon projects.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
InputStreamValve |
The InputStreamValve is a
ByteBuffer based Valve that transforms
a possibly blocking InputStream into the Valve. |
class |
Tank<T> |
Tank of events is a closeable FIFO queue with a limited size implementing
Valve reactive API. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> Valve<T> |
Valves.empty() |
Returns an empty
Valve - instance, which report complete as soon as handler is registered. |
default Valve<T> |
Valve.executeOn(java.util.concurrent.ExecutorService executorService) |
Returns new
Valve which defer all handlers to provided ExecutorService. |
default Valve<T> |
Valve.filter(java.util.function.Predicate<T> predicate) |
|
default <K> Valve<K> |
Valve.flatMap(java.util.function.Function<T,Valve<K>> mapFunction) |
Returns new
Valve instance which combines all results into a single Valve. |
static <T> Valve<T> |
Valves.from(Flow.Publisher<T> publisher) |
Creates a
Valve instance from provided Flow.Publisher. |
static Valve<java.nio.ByteBuffer> |
Valves.from(java.io.InputStream stream,
int bufferCapacity) |
|
static Valve<java.nio.ByteBuffer> |
Valves.from(java.io.InputStream stream,
int bufferCapacity,
java.util.concurrent.ExecutorService executorService) |
|
static <T> Valve<T> |
Valves.from(java.lang.Iterable<T> iterable) |
Creates a
Valve instance from the provided Iterable. |
static <T> Valve<T> |
Valves.from(T... t) |
Creates a
Valve instance from provided array. |
default <K> Valve<K> |
Valve.map(java.util.function.Function<T,K> mapper) |
|
default Valve<T> |
Valve.peek(java.util.function.Consumer<T> action) |
| Modifier and Type | Method | Description |
|---|---|---|
default <K> Valve<K> |
Valve.flatMap(java.util.function.Function<T,Valve<K>> mapFunction) |
Returns new
Valve instance which combines all results into a single Valve. |
Copyright © 2018 Oracle Corporation. All rights reserved.