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