Interface Messaging<I,O>

All Superinterfaces:
io.activej.async.process.AsyncCloseable
All Known Implementing Classes:
MessagingWithBinaryStreaming

public interface Messaging<I,O> extends io.activej.async.process.AsyncCloseable
  • Field Summary

    Fields inherited from interface io.activej.async.process.AsyncCloseable

    STATIC
  • Method Summary

    Modifier and Type
    Method
    Description
    io.activej.promise.Promise<I>
     
    ChannelSupplier<io.activej.bytebuf.ByteBuf>
     
    io.activej.promise.Promise<Void>
    send(O msg)
     
    ChannelConsumer<io.activej.bytebuf.ByteBuf>
     
    io.activej.promise.Promise<Void>
     

    Methods inherited from interface io.activej.async.process.AsyncCloseable

    close, closeEx
  • Method Details

    • receive

      io.activej.promise.Promise<I> receive()
    • send

      io.activej.promise.Promise<Void> send(O msg)
    • sendEndOfStream

      io.activej.promise.Promise<Void> sendEndOfStream()
    • receiveBinaryStream

      ChannelSupplier<io.activej.bytebuf.ByteBuf> receiveBinaryStream()
    • sendBinaryStream

      ChannelConsumer<io.activej.bytebuf.ByteBuf> sendBinaryStream()