Class ByteChunker
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.transformer.AbstractChannelTransformer<ByteChunker,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
io.activej.csp.process.transformer.impl.ByteChunker
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.ReactiveProcess,HasChannelInput<io.activej.bytebuf.ByteBuf>,HasChannelOutput<io.activej.bytebuf.ByteBuf>,WithChannelInput<ByteChunker,,io.activej.bytebuf.ByteBuf> WithChannelOutput<ByteChunker,,io.activej.bytebuf.ByteBuf> WithChannelTransformer<ByteChunker,,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf> 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> io.activej.reactor.Reactive
public final class ByteChunker
extends AbstractChannelTransformer<ByteChunker,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.activej.csp.process.AbstractCommunicatingProcess
AbstractCommunicatingProcess.SanitizedBinaryChannelSupplier -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal io.activej.bytebuf.ByteBufsfinal intfinal intFields inherited from class io.activej.csp.process.transformer.AbstractChannelTransformer
input, outputFields inherited from class io.activej.reactor.AbstractReactive
reactorFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.activej.csp.process.transformer.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 io.activej.reactor.AbstractReactive
getReactorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.reactor.Reactive
getReactorMethods 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, transform
-
Field Details
-
bufs
public final io.activej.bytebuf.ByteBufs bufs -
minChunkSize
public final int minChunkSize -
maxChunkSize
public final int maxChunkSize
-
-
Constructor Details
-
ByteChunker
public ByteChunker(int minChunkSize, int maxChunkSize)
-
-
Method Details
-
onItem
- Specified by:
onItemin classAbstractChannelTransformer<ByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-
onProcessFinish
- Overrides:
onProcessFinishin classAbstractChannelTransformer<ByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-
onCleanup
protected void onCleanup()- Overrides:
onCleanupin classAbstractChannelTransformer<ByteChunker,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
-