| Package | Description |
|---|---|
| io.helidon.common.reactive.valve |
Reactive utilities for Helidon projects.
|
| Modifier and Type | Class and 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 and 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(ExecutorService executorService)
Returns new
Valve which defer all handlers to provided ExecutorService. |
default Valve<T> |
Valve.filter(Predicate<T> predicate)
|
default <K> Valve<K> |
Valve.flatMap(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<ByteBuffer> |
Valves.from(InputStream stream,
int bufferCapacity)
|
static Valve<ByteBuffer> |
Valves.from(InputStream stream,
int bufferCapacity,
ExecutorService executorService)
|
static <T> Valve<T> |
Valves.from(Iterable<T> iterable)
|
static <T> Valve<T> |
Valves.from(T... t)
Creates a
Valve instance from provided array. |
default <K> Valve<K> |
Valve.map(Function<T,K> mapper)
|
default Valve<T> |
Valve.peek(Consumer<T> action)
|
| Modifier and Type | Method and Description |
|---|---|
default <K> Valve<K> |
Valve.flatMap(Function<T,Valve<K>> mapFunction)
Returns new
Valve instance which combines all results into a single Valve. |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.