public class OrderedEntityStreamReader
extends java.lang.Object
implements com.linkedin.r2.message.stream.entitystream.Reader
EventLoop| Constructor and Description |
|---|
OrderedEntityStreamReader(io.netty.channel.ChannelHandlerContext ctx,
com.linkedin.r2.message.stream.entitystream.Reader reader)
Construct a new instance.
|
| 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) |
void |
request(int maximumChunks) |
public OrderedEntityStreamReader(io.netty.channel.ChannelHandlerContext ctx,
com.linkedin.r2.message.stream.entitystream.Reader reader)
ctx - the ChannelHandlerContext to retrieve the right EventLoop Executorreader - the underlying Reader whose callbacks execution needs to be orderedpublic 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.Observerpublic void request(int maximumChunks)