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 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

      public abstract io.activej.promise.Promise<Void> needMoreData()
    • endOfStream

      public abstract io.activej.promise.Promise<Void> endOfStream()
    • ofList

      public static BinaryChannelSupplier ofList(List<io.activej.bytebuf.ByteBuf> iterable)
    • ofIterator

      public static BinaryChannelSupplier ofIterator(Iterator<io.activej.bytebuf.ByteBuf> iterator)
    • of

      public static BinaryChannelSupplier of(ChannelSupplier<io.activej.bytebuf.ByteBuf> input)
    • 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

      public final <T> io.activej.promise.Promise<T> decode(ByteBufsDecoder<T> decoder)
    • decodeRemaining

      public final <T> io.activej.promise.Promise<T> decodeRemaining(ByteBufsDecoder<T> decoder)
    • decodeStream

      public final <T> ChannelSupplier<T> decodeStream(ByteBufsDecoder<T> decoder)
    • bindTo

      public io.activej.promise.Promise<Void> bindTo(BinaryChannelInput input)
    • onCleanup

      protected void onCleanup()
      Overrides:
      onCleanup in class io.activej.async.process.AbstractAsyncCloseable