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, getRemoteAddressvoid flush()
throws IOException
IOExceptionR sendAndGet(S object) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionstatic <Q,R> BidiStream<Q,R> create(StreamHandler<BidiStream<R,Q>> handler)
Copyright © 2019. All rights reserved.