- java.lang.Object
-
- io.helidon.config.ConfigHelper
-
public final class ConfigHelper extends Object
Common Configuration utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Flow.Subscriber<T>subscriber(Function<T,Boolean> onNextFunction)Creates aFlow.Subscriberthat will delegateFlow.Subscriber.onNext(Object)to the specifiedonNextFunctionfunction.
-
-
-
Method Detail
-
subscriber
public static <T> Flow.Subscriber<T> subscriber(Function<T,Boolean> onNextFunction)
Creates aFlow.Subscriberthat will delegateFlow.Subscriber.onNext(Object)to the specifiedonNextFunctionfunction.The new subscriber's
Flow.Subscriber.onSubscribe(Flow.Subscription)method automatically invokesFlow.Subscription.request(long)to request all events that are available in the subscription.The caller-provided
onNextFunctionshould returnfalsein order tocancelcurrent subscription.- Type Parameters:
T- the type of the items provided by the subscription- Parameters:
onNextFunction- function to be invoked duringonNextprocessing- Returns:
Subscriberthat delegates itsonNextto the caller-provided function
-
-