public interface BidiStream<S,R> extends SendStream<S>, ReceiveStream<R>
| Modifier and Type | Method and Description |
|---|---|
static <Q,R> BidiStream<Q,R> |
create(StreamHandler<BidiStream<R,Q>> handler) |
void |
flush() |
R |
sendAndGet(S object) |
create, sendcreate, receiveclose, getBytesRead, getBytesWritten, getLocalAddress, getRemoteAddress, invalidate, socketvoid flush()
throws java.io.IOException
java.io.IOExceptionR sendAndGet(S object) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionstatic <Q,R> BidiStream<Q,R> create(StreamHandler<BidiStream<R,Q>> handler)