@ProxyGen @VertxGen public interface MyService { @Fluent MyService sayHello(String name, Handler<AsyncResult<String>> handler); }
@ProxyGen @VertxGen public interface SomeDatabaseService { @GenIgnore static SomeDatabaseService create() { return new SomeDatabaseServiceImpl(); } @GenIgnore static io.vertx.example.reactivex.services.serviceproxy.reactivex.SomeDatabaseService createProxy(Vertx vertx, String address) { return new io.vertx.example.reactivex.services.serviceproxy.reactivex.SomeDatabaseService(new SomeDatabaseServiceVertxEBProxy(vertx, address)); } // To use Rx-ified method, just declare your methods in a call-back style here. // The Rx-ified methods will be automatically generated. @Fluent SomeDatabaseService getDataById(int id, Handler<AsyncResult<JsonObject>> resultHandler); }
@ProxyGen // Generate the proxy and handler
@Deprecated @ProxyGen @VertxGen public interface AdapterProxy { static AdapterProxy createProxy(Vertx vertx, String address) { return new AdapterProxyVertxEBProxy(vertx, address); } static AdapterProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new AdapterProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(AdapterRequest request, Handler<AsyncResult<AdapterResponse>> result); }
@Deprecated @ProxyGen @VertxGen public interface AdapterProxy { static AdapterProxy createProxy(Vertx vertx, String address) { return new AdapterProxyVertxEBProxy(vertx, address); } static AdapterProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new AdapterProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(AdapterRequest request, Handler<AsyncResult<AdapterResponse>> result); }
/** * @author <a href="http://tfox.org">Tim Fox</a> */ @ProxyGen public interface InvalidClose3 { @ProxyClose void closeIt(Handler<AsyncResult<String>> handler, String s); }
@ProxyGen @VertxGen public interface RepositoryConnectorProxy { static RepositoryConnectorProxy createProxy(Vertx vertx, String address) { return new RepositoryConnectorProxyVertxEBProxy(vertx, address); } static RepositoryConnectorProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new RepositoryConnectorProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(ClientRequest request, Handler<AsyncResult<ClientResponse>> result); }
/** * @author <a href="http://tfox.org">Tim Fox</a> */ @ProxyGen public interface InvalidParams1 { void someMethod(VertxGen vertxGen); }
/** * @author <a href="http://tfox.org">Tim Fox</a> */ @ProxyGen public interface InvalidClose1 { @ProxyClose void closeIt(Handler<AsyncResult<String>> handler); }
/** * @author <a href="http://tfox.org">Tim Fox</a> */ @ProxyGen public interface ValidProxyCloseWithFuture { @ProxyClose void closeIt(Handler<AsyncResult<Void>> handler); }
@ProxyGen @VertxGen public interface FormsAdapterProxy { static FormsAdapterProxy createProxy(Vertx vertx, String address) { return new FormsAdapterProxyVertxEBProxy(vertx, address); } static FormsAdapterProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new FormsAdapterProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(FormsAdapterRequest request, Handler<AsyncResult<FormsAdapterResponse>> result); }
@ProxyGen @VertxGen public interface DataSourceAdapterProxy { static DataSourceAdapterProxy createProxy(Vertx vertx, String address) { return new DataSourceAdapterProxyVertxEBProxy(vertx, address); } static DataSourceAdapterProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new DataSourceAdapterProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(DataSourceAdapterRequest request, Handler<AsyncResult<DataSourceAdapterResponse>> result); }
@ProxyGen @VertxGen public interface KnotProxy { static KnotProxy createProxy(Vertx vertx, String address) { return new KnotProxyVertxEBProxy(vertx, address); } static KnotProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new KnotProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(KnotContext knotContext, Handler<AsyncResult<KnotContext>> result); }
@ProxyGen @VertxGen public interface KnotProxy { static KnotProxy createProxy(Vertx vertx, String address) { return new KnotProxyVertxEBProxy(vertx, address); } static KnotProxy createProxyWithOptions(Vertx vertx, String address, DeliveryOptions deliveryOptions) { return new KnotProxyVertxEBProxy(vertx, address, deliveryOptions); } void process(KnotContext knotContext, Handler<AsyncResult<KnotContext>> result); }
/** * Test base imports are corrects. * * @author <a href="mailto:julien@julienviet.com">Julien Viet</a> */ @ProxyGen @VertxGen public interface TestBaseImportsService { void m(); }
/** * @author <a href="http://escoffier.me">Clement Escoffier</a> */ @ProxyGen @VertxGen public interface HelloService { void hello(JsonObject name, Handler<AsyncResult<String>> resultHandler); }
/** * @author <a href="http://escoffier.me">Clement Escoffier</a> */ @ProxyGen @VertxGen public interface HelloService { void hello(JsonObject name, Handler<AsyncResult<String>> resultHandler); }
/** * @author <a href="http://escoffier.me">Clement Escoffier</a> */ @ProxyGen @VertxGen public interface HelloService { void hello(JsonObject name, Handler<AsyncResult<String>> resultHandler); }
/** * @author <a href="http://escoffier.me">Clement Escoffier</a> */ @ProxyGen @VertxGen public interface HelloService { void hello(JsonObject name, Handler<AsyncResult<String>> resultHandler); }
/** * @author <a href="http://escoffier.me">Clement Escoffier</a> */ @ProxyGen @VertxGen public interface HelloService { void hello(JsonObject name, Handler<AsyncResult<String>> resultHandler); }