use of io.pravega.shared.protocol.netty.Request in project pravega by pravega.
the class ServerConnectionInboundHandler method channelRead.
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
Request cmd = (Request) msg;
log.debug("Processing request: {}", cmd);
RequestProcessor requestProcessor = processor.get();
if (requestProcessor == null) {
throw new IllegalStateException("No command processor set for connection");
}
cmd.process(requestProcessor);
}
Aggregations