Package com.alibaba.wasp.util

Examples of com.alibaba.wasp.util.ByteBufferInputStream


        Message returnValue = null;
        thread2Address.put(Thread.currentThread(), (InetSocketAddress) ctx
            .getChannel().getRemoteAddress());
        NettyDataPack dataPack = (NettyDataPack) e.getMessage();
        List<ByteBuffer> req = dataPack.getDatas();
        ByteBufferInputStream dis = new ByteBufferInputStream(req);
        ConnectionHeader header = ConnectionHeader.parseDelimitedFrom(dis);
        @SuppressWarnings("unused")
        RpcRequestHeader request = RpcRequestHeader.parseDelimitedFrom(dis);
        RpcRequestBody rpcRequestBody;
        try {
View Full Code Here


  }

  private Message processResponse(List<ByteBuffer> res,
      Class<? extends VersionedProtocol> protocol, RpcRequestBody param)
      throws IOException {
    ByteBufferInputStream in = new ByteBufferInputStream(res);
    try {
      // See NettyServer.prepareResponse for where we write out the response.
      // It writes the call.id (int), a boolean signifying any error (and if
      // so the exception name/trace), and the response bytes
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.util.ByteBufferInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.