Package one.nio.rpc.stream
Interface ReceiveStream<R>
-
- All Superinterfaces:
AutoCloseable,BaseStream
- All Known Subinterfaces:
BidiStream<S,R>
- All Known Implementing Classes:
RpcStreamImpl,StreamProxy
public interface ReceiveStream<R> extends BaseStream
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <R> ReceiveStream<R>create(StreamHandler<SendStream<R>> handler)Rreceive()-
Methods inherited from interface one.nio.rpc.stream.BaseStream
close, getBytesRead, getBytesWritten, getLocalAddress, getRemoteAddress, invalidate, socket
-
-
-
-
Method Detail
-
receive
R receive() throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
create
static <R> ReceiveStream<R> create(StreamHandler<SendStream<R>> handler)
-
-