Package io.activej.csp.binary
Class BinaryChannelSupplier
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.binary.BinaryChannelSupplier
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.reactor.Reactive
- Direct Known Subclasses:
AbstractCommunicatingProcess.SanitizedBinaryChannelSupplier
public abstract class BinaryChannelSupplier
extends io.activej.async.process.AbstractAsyncCloseable
-
Field Summary
FieldsFields inherited from class io.activej.reactor.AbstractReactive
reactorFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedBinaryChannelSupplier(io.activej.bytebuf.ByteBufs bufs) -
Method Summary
Modifier and TypeMethodDescriptionio.activej.promise.Promise<Void>bindTo(BinaryChannelInput input) final <T> io.activej.promise.Promise<T>decode(ByteBufsDecoder<T> decoder) final <T> io.activej.promise.Promise<T>decodeRemaining(ByteBufsDecoder<T> decoder) final <T> ChannelSupplier<T>decodeStream(ByteBufsDecoder<T> decoder) abstract io.activej.promise.Promise<Void>io.activej.bytebuf.ByteBufsgetBufs()abstract io.activej.promise.Promise<Void>static BinaryChannelSupplierof(ChannelSupplier<io.activej.bytebuf.ByteBuf> input) static BinaryChannelSupplierofIterator(Iterator<io.activej.bytebuf.ByteBuf> iterator) static BinaryChannelSupplierstatic BinaryChannelSupplierofProvidedBufs(io.activej.bytebuf.ByteBufs bufs, io.activej.async.function.AsyncRunnable get, io.activej.async.function.AsyncRunnable complete, io.activej.async.process.AsyncCloseable closeable) protected voidMethods inherited from class io.activej.async.process.AbstractAsyncCloseable
closeEx, doSanitize, getCloseable, getException, isClosed, onClosed, sanitize, setCloseableMethods 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.async.process.AsyncCloseable
close
-
Field Details
-
bufs
protected final io.activej.bytebuf.ByteBufs bufs
-
-
Constructor Details
-
BinaryChannelSupplier
protected BinaryChannelSupplier(io.activej.bytebuf.ByteBufs bufs) -
BinaryChannelSupplier
protected BinaryChannelSupplier()
-
-
Method Details
-
getBufs
public io.activej.bytebuf.ByteBufs getBufs() -
needMoreData
-
endOfStream
-
ofList
-
ofIterator
-
of
-
ofProvidedBufs
public static BinaryChannelSupplier ofProvidedBufs(io.activej.bytebuf.ByteBufs bufs, io.activej.async.function.AsyncRunnable get, io.activej.async.function.AsyncRunnable complete, io.activej.async.process.AsyncCloseable closeable) -
decode
-
decodeRemaining
-
decodeStream
-
bindTo
-
onCleanup
protected void onCleanup()- Overrides:
onCleanupin classio.activej.async.process.AbstractAsyncCloseable
-