Package io.activej.csp.process
Class ChannelSplitter.Builder
java.lang.Object
io.activej.common.builder.AbstractBuilder<ChannelSplitter<T>.Builder,ChannelSplitter<T>>
io.activej.csp.process.ChannelSplitter.Builder
- All Implemented Interfaces:
io.activej.common.builder.Builder<ChannelSplitter<T>>,io.activej.common.initializer.WithInitializer<ChannelSplitter<T>.Builder>
- Enclosing class:
- ChannelSplitter<T>
public final class ChannelSplitter.Builder
extends io.activej.common.builder.AbstractBuilder<ChannelSplitter<T>.Builder,ChannelSplitter<T>>
-
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelSplitter<T>doBuild()withSplitFunction(UnaryOperator<T> splitFn) Allows to set a function that will be used for splitting a value.Methods inherited from class io.activej.common.builder.AbstractBuilder
build, checkNotBuilt, isBuiltMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.common.initializer.WithInitializer
initialize, set, setIf, setIfNotNull
-
Method Details
-
withSplitFunction
Allows to set a function that will be used for splitting a value. A split function is applied to incoming value each time it is being sent to an output.- Parameters:
splitFn- split function
-
doBuild
- Specified by:
doBuildin classio.activej.common.builder.AbstractBuilder<ChannelSplitter<T>.Builder,ChannelSplitter<T>>
-