Module io.helidon.common.reactive
Package io.helidon.common.reactive
Class IoMulti.OutputStreamMultiBuilder
java.lang.Object
io.helidon.common.reactive.IoMulti.OutputStreamMultiBuilder
- All Implemented Interfaces:
Builder<IoMulti.OutputStreamMultiBuilder,
,OutputStreamMulti> Supplier<OutputStreamMulti>
- Enclosing interface:
IoMulti
public static final class IoMulti.OutputStreamMultiBuilder
extends Object
implements Builder<IoMulti.OutputStreamMultiBuilder,OutputStreamMulti>
Fluent API builder for
OutputStreamMulti
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.onRequest
(BiConsumer<Long, Long> requestCallback) Callback executed when request signal from downstream arrive.Deprecated.Set max timeout for which is allowed to block write methods, in case there is no demand from downstream.
-
Method Details
-
timeout
@Deprecated(since="4.0.0") public IoMulti.OutputStreamMultiBuilder timeout(long timeout, TimeUnit unit) Deprecated.usetimeout(Duration)
insteadSet max timeout for which is allowed to block write methods, in case there is no demand from downstream.- Parameters:
timeout
- the maximum time to blockunit
- the time unit of the timeout argument- Returns:
- this builder
-
timeout
Set max timeout for which is allowed to block write methods, in case there is no demand from downstream.- Parameters:
timeout
- the maximum time to block- Returns:
- this builder
-
onRequest
Callback executed when request signal from downstream arrive.- param
n
the requested count. - param
demand
the current total cumulative requested count, ranges between [0,Long.MAX_VALUE
] where the max indicates that this publisher is unbounded.
- Parameters:
requestCallback
- to be executed- Returns:
- this builder
- param
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<IoMulti.OutputStreamMultiBuilder,
OutputStreamMulti> - Returns:
- instance of the built type
-
timeout(Duration)
instead