Package io.activej.csp.process
Class ChannelByteChunker
java.lang.Object
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.AbstractChannelTransformer<ChannelByteChunker,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
io.activej.csp.process.ChannelByteChunker
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.AsyncProcess,io.activej.common.initializer.WithInitializer<ChannelByteChunker>,ChannelConsumerTransformer<io.activej.bytebuf.ByteBuf,,ChannelConsumer<io.activej.bytebuf.ByteBuf>> ChannelSupplierTransformer<io.activej.bytebuf.ByteBuf,,ChannelSupplier<io.activej.bytebuf.ByteBuf>> ChannelTransformer<io.activej.bytebuf.ByteBuf,,io.activej.bytebuf.ByteBuf> HasChannelInput<io.activej.bytebuf.ByteBuf>,HasChannelOutput<io.activej.bytebuf.ByteBuf>,WithChannelInput<ChannelByteChunker,,io.activej.bytebuf.ByteBuf> WithChannelOutput<ChannelByteChunker,,io.activej.bytebuf.ByteBuf> WithChannelTransformer<ChannelByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
public final class ChannelByteChunker
extends AbstractChannelTransformer<ChannelByteChunker,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
implements io.activej.common.initializer.WithInitializer<ChannelByteChunker>
-
Field Summary
Fields inherited from class io.activej.csp.process.AbstractChannelTransformer
input, outputFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelByteChunkercreate(io.activej.common.MemSize minChunkSize, io.activej.common.MemSize maxChunkSize) protected voidprotected @NotNull io.activej.promise.Promise<Void>onItem(io.activej.bytebuf.ByteBuf item) protected io.activej.promise.Promise<Void>Methods inherited from class io.activej.csp.process.AbstractChannelTransformer
beforeProcess, doClose, doProcess, getInput, getOutput, onProcessStart, send, sendEndOfStreamMethods inherited from class io.activej.csp.process.AbstractCommunicatingProcess
afterProcess, close, closeEx, completeProcess, completeProcessEx, doSanitize, getProcessCompletion, isProcessComplete, isProcessStarted, sanitize, sanitize, sanitize, sanitize, startProcessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.csp.dsl.WithChannelInput
withInputMethods inherited from interface io.activej.csp.dsl.WithChannelOutput
withOutputMethods inherited from interface io.activej.csp.dsl.WithChannelTransformer
transform, transformMethods inherited from interface io.activej.common.initializer.WithInitializer
withInitializer
-
Method Details
-
create
public static ChannelByteChunker create(io.activej.common.MemSize minChunkSize, io.activej.common.MemSize maxChunkSize) -
onItem
@NotNull protected @NotNull io.activej.promise.Promise<Void> onItem(io.activej.bytebuf.ByteBuf item) - Specified by:
onItemin classAbstractChannelTransformer<ChannelByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-
onProcessFinish
- Overrides:
onProcessFinishin classAbstractChannelTransformer<ChannelByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-
onCleanup
protected void onCleanup()- Overrides:
onCleanupin classAbstractChannelTransformer<ChannelByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-