Package com.twitter.finagle.thrift

Examples of com.twitter.finagle.thrift.ThriftClientFramedCodecFactory


public class Client {
    public static void main(String[] args) {
        Service<ThriftClientRequest, byte[]> client = ClientBuilder.safeBuild(ClientBuilder.get()
                .hosts(new InetSocketAddress(8080))
                .codec(new ThriftClientFramedCodecFactory())
                .hostConnectionLimit(100)); // IMPORTANT: this determines how many rpc's are sent in at once.
                                           // If set to 1, you get no parallelism on for this client.


        Haver.ServiceIface haverClient = new Haver.ServiceToClient(client, new TBinaryProtocol.Factory());
View Full Code Here

TOP

Related Classes of com.twitter.finagle.thrift.ThriftClientFramedCodecFactory

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.