Package io.activej.csp.process.frame
Class ChannelFrameDecoder
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.frame.ChannelFrameDecoder
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.ReactiveProcess,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> 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 ChannelFrameDecoder
extends AbstractCommunicatingProcess
implements WithChannelTransformer<ChannelFrameDecoder,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>, WithBinaryChannelInput<ChannelFrameDecoder>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.activej.csp.process.AbstractCommunicatingProcess
AbstractCommunicatingProcess.SanitizedBinaryChannelSupplier -
Field Summary
Fields inherited from class io.activej.reactor.AbstractReactive
reactorFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelFrameDecoder.Builderbuilder(BlockDecoder decoder) static ChannelFrameDecoder.Builderbuilder(FrameFormat format) static ChannelFrameDecodercreate(BlockDecoder decoder) static ChannelFrameDecodercreate(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>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 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.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, transform
-
Method Details
-
create
-
create
-
builder
-
builder
-
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
-