Class IoMulti.MultiToByteChannelBuilder
java.lang.Object
io.helidon.common.reactive.IoMulti.MultiToByteChannelBuilder
- All Implemented Interfaces:
Builder<IoMulti.MultiToByteChannelBuilder, Function<? super Multi<ByteBuffer>, ? extends Single<Void>>>, Supplier<Function<? super Multi<ByteBuffer>, ? extends Single<Void>>>
- Enclosing interface:
IoMulti
public static final class IoMulti.MultiToByteChannelBuilder
extends Object
implements Builder<IoMulti.MultiToByteChannelBuilder, Function<? super Multi<ByteBuffer>, ? extends Single<Void>>>
Fluent API builder for creating a subscriber consuming
Multi<ByteBuffer> to WritableByteChannel.-
Method Summary
Modifier and TypeMethodDescriptionFunction<? super Multi<ByteBuffer>, ? extends Single<Void>> build()Build the instance from this builder.Supply custom executor for handling the blocking ofWritableByteChannel.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Function<? super Multi<ByteBuffer>, ? extends Single<Void>> get()identity()Instance of this builder as the correct type.update(Consumer<IoMulti.MultiToByteChannelBuilder> consumer) Update the builder in a fluent API way.
-
Method Details
-
executor
Supply custom executor for handling the blocking ofWritableByteChannel.- Parameters:
executor- custom executor- Returns:
- updated builder instance
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<IoMulti.MultiToByteChannelBuilder, Function<? super Multi<ByteBuffer>, ? extends Single<Void>>>- Returns:
- instance of the built type
-