Package io.activej.csp.process.frame
Class ChannelFrameEncoder
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.frame.ChannelFrameEncoder
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.ReactiveProcess,HasChannelInput<io.activej.bytebuf.ByteBuf>,HasChannelOutput<io.activej.bytebuf.ByteBuf>,WithChannelInput<ChannelFrameEncoder,,io.activej.bytebuf.ByteBuf> WithChannelOutput<ChannelFrameEncoder,,io.activej.bytebuf.ByteBuf> WithChannelTransformer<ChannelFrameEncoder,,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 ChannelFrameEncoder
extends AbstractCommunicatingProcess
implements WithChannelTransformer<ChannelFrameEncoder,io.activej.bytebuf.ByteBuf,io.activej.bytebuf.ByteBuf>
-
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 ChannelFrameEncoder.Builderbuilder(BlockEncoder encoder) static ChannelFrameEncoder.Builderbuilder(FrameFormat format) static ChannelFrameEncodercreate(BlockEncoder encoder) static ChannelFrameEncodercreate(FrameFormat format) protected voidAn operation which is executed in case of manual closing.protected voidDescribes the main operations of the communicating process.ChannelInput<io.activej.bytebuf.ByteBuf>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.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 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
-