Class AbstractChannelTransformer<S extends AbstractChannelTransformer<S,I,O>,I,O>
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.csp.process.AbstractCommunicatingProcess
io.activej.csp.process.transformer.AbstractChannelTransformer<S,I,O>
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.async.process.ReactiveProcess,HasChannelInput<I>,HasChannelOutput<O>,WithChannelInput<S,,I> WithChannelOutput<S,,O> WithChannelTransformer<S,,I, O> ChannelConsumerTransformer<O,,ChannelConsumer<I>> ChannelSupplierTransformer<I,,ChannelSupplier<O>> ChannelTransformer<I,,O> io.activej.reactor.Reactive
- Direct Known Subclasses:
ByteChunker,ByteRanger,RateLimiter
public abstract class AbstractChannelTransformer<S extends AbstractChannelTransformer<S,I,O>,I,O>
extends AbstractCommunicatingProcess
implements WithChannelTransformer<S,I,O>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.activej.csp.process.AbstractCommunicatingProcess
AbstractCommunicatingProcess.SanitizedBinaryChannelSupplier -
Field Summary
FieldsFields inherited from class io.activej.reactor.AbstractReactive
reactorFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected final voidAn operation which is executed in case of manual closing.protected voidDescribes the main operations of the communicating process.getInput()protected voidprotected abstract io.activej.promise.Promise<Void>protected io.activej.promise.Promise<Void>protected io.activej.promise.Promise<Void>protected final io.activej.promise.Promise<Void>protected final io.activej.promise.Promise<Void>Methods 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
-
input
-
output
-
-
Constructor Details
-
AbstractChannelTransformer
public AbstractChannelTransformer()
-
-
Method Details
-
send
-
sendEndOfStream
-
onItem
-
onProcessFinish
-
onProcessStart
-
beforeProcess
protected void beforeProcess()- Overrides:
beforeProcessin classAbstractCommunicatingProcess
-
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
-
getInput
- Specified by:
getInputin interfaceHasChannelInput<S extends AbstractChannelTransformer<S,I, O>>
-
getOutput
- Specified by:
getOutputin interfaceHasChannelOutput<S extends AbstractChannelTransformer<S,I, O>>
-
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
-
onCleanup
protected void onCleanup()
-