Package io.activej.csp.process.frames
Class ChannelFrameDecoder
java.lang.Object
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.frames.ChannelFrameDecoder
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.AsyncProcess,io.activej.common.initializer.WithInitializer<ChannelFrameDecoder>,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> HasBinaryChannelInput,HasChannelInput<io.activej.bytebuf.ByteBuf>,HasChannelOutput<io.activej.bytebuf.ByteBuf>,WithBinaryChannelInput<ChannelFrameDecoder>,WithChannelInput<ChannelFrameDecoder,,io.activej.bytebuf.ByteBuf> WithChannelOutput<ChannelFrameDecoder,,io.activej.bytebuf.ByteBuf> WithChannelTransformer<ChannelFrameDecoder,io.activej.bytebuf.ByteBuf, io.activej.bytebuf.ByteBuf>
public final class ChannelFrameDecoder
extends AbstractCommunicatingProcess
implements WithChannelTransformer<ChannelFrameDecoder,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>, WithBinaryChannelInput<ChannelFrameDecoder>, io.activej.common.initializer.WithInitializer<ChannelFrameDecoder>
-
Field Summary
Fields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelFrameDecodercreate(@NotNull BlockDecoder decoder) static ChannelFrameDecodercreate(@NotNull FrameFormat format) protected voidAn operation which is executed in case of manual closing.protected voidDescribes the main operations of the communicating process.getInput()ChannelOutput<io.activej.bytebuf.ByteBuf>withDecoderResets(boolean decoderResets) Methods inherited from class io.activej.csp.process.AbstractCommunicatingProcess
afterProcess, beforeProcess, 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.WithBinaryChannelInput
withInputMethods 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
-
create
-
withDecoderResets
-
withDecoderResets
-
getInput
- Specified by:
getInputin interfaceHasBinaryChannelInput- Specified by:
getInputin interfaceHasChannelInput<io.activej.bytebuf.ByteBuf>
-
getOutput
- Specified by:
getOutputin interfaceHasChannelOutput<io.activej.bytebuf.ByteBuf>
-
doProcess
protected void doProcess()Description copied from class:AbstractCommunicatingProcessDescribes the main operations of the communicating process. May include interaction between input (ChannelSupplier) and output (ChannelConsumer).- Specified by:
doProcessin classAbstractCommunicatingProcess
-
doClose
Description copied from class:AbstractCommunicatingProcessAn operation which is executed in case of manual closing.- Specified by:
doClosein classAbstractCommunicatingProcess- Parameters:
e- an exception thrown on closing
-