Package io.activej.csp.binary
Class BinaryChannelSupplier
java.lang.Object
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.binary.BinaryChannelSupplier
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable
public abstract class BinaryChannelSupplier
extends io.activej.async.process.AbstractAsyncCloseable
-
Field Summary
FieldsFields inherited from class io.activej.async.process.AbstractAsyncCloseable
eventloopFields 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, getException, isClosed, onClosed, sanitize, setCloseableMethods 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
-