public class StreamReader
extends java.lang.Object
implements com.linkedin.r2.message.stream.entitystream.Reader
Reader implementation that reads from the entity stream
and writes to the Netty pipeline.| Modifier and Type | Field and Description |
|---|---|
static com.linkedin.data.ByteString |
EOF |
| Constructor and Description |
|---|
StreamReader(io.netty.channel.ChannelHandlerContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
onDataAvailable(com.linkedin.data.ByteString data) |
void |
onDone() |
void |
onError(java.lang.Throwable e) |
void |
onInit(com.linkedin.r2.message.stream.entitystream.ReadHandle rh) |
public void onInit(com.linkedin.r2.message.stream.entitystream.ReadHandle rh)
onInit in interface com.linkedin.r2.message.stream.entitystream.Readerpublic void onDataAvailable(com.linkedin.data.ByteString data)
onDataAvailable in interface com.linkedin.r2.message.stream.entitystream.Observerpublic void onDone()
onDone in interface com.linkedin.r2.message.stream.entitystream.Observerpublic void onError(java.lang.Throwable e)
onError in interface com.linkedin.r2.message.stream.entitystream.Observer