Search in sources :

Example 1 with Request

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);
}
Also used : Request(io.pravega.shared.protocol.netty.Request) RequestProcessor(io.pravega.shared.protocol.netty.RequestProcessor)

Aggregations

Request (io.pravega.shared.protocol.netty.Request)1 RequestProcessor (io.pravega.shared.protocol.netty.RequestProcessor)1