Package io.activej.csp.net
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 TypeMethodDescriptionio.activej.promise.Promise<I>receive()ChannelSupplier<io.activej.bytebuf.ByteBuf>io.activej.promise.Promise<Void>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
-
sendEndOfStream
io.activej.promise.Promise<Void> sendEndOfStream() -
receiveBinaryStream
ChannelSupplier<io.activej.bytebuf.ByteBuf> receiveBinaryStream() -
sendBinaryStream
ChannelConsumer<io.activej.bytebuf.ByteBuf> sendBinaryStream()
-