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 ofByteBuffers being published.executor(ExecutorService executor) If theInputStreamcan block in read method, use executor for asynchronous waiting.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
byteBufferSize
Set the size ofByteBuffers being published.- Parameters:
bufferSize- size of theByteBuffer- Returns:
- Multi
-
executor
If theInputStreamcan 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:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<IoMulti.MultiFromInputStreamBuilder, Multi<ByteBuffer>>- Returns:
- instance of the built type
-