Package org.robotninjas.protobuf.netty.client

Examples of org.robotninjas.protobuf.netty.client.ClientController


      channel = channelPool.borrowObject();
      ListenableFuture<T> response = transform(channel, new AsyncFunction<NettyRpcChannel, T>() {
          @Override
          public ListenableFuture<T> apply(NettyRpcChannel channel) throws Exception {
            RaftProto.RaftService.Stub stub = RaftProto.RaftService.newStub(channel);
            ClientController controller = new ClientController(channel);
            controller.setTimeout(DEFAULT_TIMEOUT, TimeUnit.MILLISECONDS);
            RpcHandlerFuture<T> responseHandler = new RpcHandlerFuture<T>(controller);
            call.call(stub, controller, responseHandler);
            return responseHandler;
          }
        });
View Full Code Here

TOP

Related Classes of org.robotninjas.protobuf.netty.client.ClientController

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.