Module io.helidon.common.reactive
Package io.helidon.common.reactive
Class IoMulti.MultiFromInputStreamBuilder
java.lang.Object
io.helidon.common.reactive.IoMulti.MultiFromInputStreamBuilder
- All Implemented Interfaces:
Builder<IoMulti.MultiFromInputStreamBuilder,
,Multi<ByteBuffer>> Supplier<Multi<ByteBuffer>>
- Enclosing interface:
- IoMulti
public static final class IoMulti.MultiFromInputStreamBuilder
extends Object
implements Builder<IoMulti.MultiFromInputStreamBuilder,Multi<ByteBuffer>>
Fluent API builder for creating a
Multi
from an
InputStream
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.byteBufferSize
(int bufferSize) Set the size ofByteBuffer
s being published.executor
(ExecutorService executor) If theInputStream
can block in read method, use executor for asynchronous waiting.
-
Method Details
-
byteBufferSize
Set the size ofByteBuffer
s being published.- Parameters:
bufferSize
- size of theByteBuffer
- Returns:
- Multi
-
executor
If theInputStream
can block in read method, use executor for asynchronous waiting.- Parameters:
executor
- used for asynchronous waiting for blocking reads- Returns:
- this builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<IoMulti.MultiFromInputStreamBuilder,
Multi<ByteBuffer>> - Returns:
- instance of the built type
-