code: public static void main(String[] args) throws Exception {
      //#thriftclientapi
      Hello.FutureIface client = Thrift.client().newIface("localhost:8080", Hello.FutureIface.class);
      Future<String> response = client.hi().onSuccess(new Function<String, BoxedUnit>() {
        @Override
        public BoxedUnit apply(String response) {
          System.out.println("Received response: " + response);
          return null;
        }
      });
  
      Await.result(response);
      //#thriftclientapi
    }
docs: Runs the example with given {@code args}.
  
  @param args the argument list