Package com.twitter.finagle

Examples of com.twitter.finagle.ListeningServer


  }

  public static void main(String args[]) throws TimeoutException, InterruptedException {
    //#thriftserverapi
    Hello.FutureIface impl = new HelloImpl();
    ListeningServer server = Thrift.serveIface("localhost:8080", impl);
    Await.ready(server);
    //#thriftserverapi
  }
View Full Code Here


import static junit.framework.Assert.assertEquals;

public class EndToEndTest {
  @Test
  public void test() {
    ListeningServer server = ThriftMux.serveIface(":*", new TestService.FutureIface() {
      public Future<String> query(String x) {
        return Future.value(x+x);
      }
    });

View Full Code Here

  }

  @Test
  public void testInterfaces() {
    // ensure we are java friendly
    ListeningServer server = ThriftMux.server().serveIface(":*", new TestService.FutureIface() {
      public Future<String> query(String x) {
        return Future.value(x+x);
      }
    });

View Full Code Here

TOP

Related Classes of com.twitter.finagle.ListeningServer

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.