public RpcWorker(int id, byte[] buf, RpcServer server, WriteContext context) { this.id = id; this.buf = buf; // start at 5 // 0xFF 0xFF [ 0 , this.session = new WriteSession(LinkedBuffer.use(buf, 5)); this.server = server; this.context = context; kvpInput = new KvpTextByteArrayInput(buf, 0, 0); jniCodecs = ProtocolSpecificCodecs.create(RpcProtocol.DEFAULT, this, session, session.nextBufferSize); //protocolDelegate = null; }
sessionUdf = new WriteSession(lbUdf);