/** * Create a OAuth2 auth provider * @param vertx the Vertx instance * @param flow * @return the auth provider */ @Deprecated() public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, OAuth2FlowType flow) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.OAuth2Auth.create(vertx.getDelegate(), flow)); return ret; }
/** * Like {@link io.reactiverse.rxjava.pgclient.PgClient#pool} with options build from <code>connectionUri</code>. * @param vertx * @param connectionUri * @return */ public static io.reactiverse.rxjava.pgclient.PgPool pool(io.vertx.rxjava.core.Vertx vertx, String connectionUri) { io.reactiverse.rxjava.pgclient.PgPool ret = io.reactiverse.rxjava.pgclient.PgPool.newInstance(io.reactiverse.pgclient.PgClient.pool(vertx.getDelegate(), connectionUri)); return ret; }
/** * Like {@link io.vertx.rxjava.cassandra.CassandraClient#createNonShared} but with default client options. * @param vertx * @return */ public static io.vertx.rxjava.cassandra.CassandraClient createNonShared(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.cassandra.CassandraClient ret = io.vertx.rxjava.cassandra.CassandraClient.newInstance(io.vertx.cassandra.CassandraClient.createNonShared(vertx.getDelegate())); return ret; }
/** * Create a OAuth2Auth provider for Shopify * @param vertx * @param clientId the client id given to you by Shopify * @param clientSecret the client secret given to you by Shopify * @param shop your shop name * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, String shop) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.ShopifyAuth.create(vertx.getDelegate(), clientId, clientSecret, shop)); return ret; }
/** * Creates a {@link io.vertx.rxjava.ext.stomp.StompServer} based on the default Stomp Server implementation, and use the default options. * @param vertx the vert.x instance to use * @return the created {@link io.vertx.rxjava.ext.stomp.StompServer} */ public static io.vertx.rxjava.ext.stomp.StompServer create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.stomp.StompServer ret = io.vertx.rxjava.ext.stomp.StompServer.newInstance(io.vertx.ext.stomp.StompServer.create(vertx.getDelegate())); return ret; }
/** * Create a OAuth2Auth provider for LinkedIn * @param vertx * @param clientId the client id given to you by LinkedIn * @param clientSecret the client secret given to you by LinkedIn * @param httpClientOptions custom http client options * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, HttpClientOptions httpClientOptions) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.LinkedInAuth.create(vertx.getDelegate(), clientId, clientSecret, httpClientOptions)); return ret; }
/** * Create a OAuth2Auth provider for Foursquare * @param vertx * @param clientId the client id given to you by Foursquare * @param clientSecret the client secret given to you by Foursquare * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.FoursquareAuth.create(vertx.getDelegate(), clientId, clientSecret)); return ret; }
/** * Creates a new instance of the default implementation of {@link io.vertx.rxjava.ext.healthchecks.HealthChecks}. * @param vertx the instance of Vert.x, must not be <code>null</code> * @return the created instance */ public static io.vertx.rxjava.ext.healthchecks.HealthChecks create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.healthchecks.HealthChecks ret = io.vertx.rxjava.ext.healthchecks.HealthChecks.newInstance(io.vertx.ext.healthchecks.HealthChecks.create(vertx.getDelegate())); return ret; }
/** * Create a PostgreSQL client which maintains its own pool. * @param vertx the Vert.x instance * @param config the configuration * @return the client */ public static io.vertx.rxjava.ext.asyncsql.AsyncSQLClient createNonShared(io.vertx.rxjava.core.Vertx vertx, JsonObject config) { io.vertx.rxjava.ext.asyncsql.AsyncSQLClient ret = io.vertx.rxjava.ext.asyncsql.AsyncSQLClient.newInstance(io.vertx.ext.asyncsql.PostgreSQLClient.createNonShared(vertx.getDelegate(), config)); return ret; }
/** * Create a JDBC client which shares its data source with any other JDBC clients created with the same * data source name * @param vertx the Vert.x instance * @param config the configuration * @param dataSourceName the data source name * @return the client */ public static io.vertx.rxjava.ext.jdbc.JDBCClient createShared(io.vertx.rxjava.core.Vertx vertx, JsonObject config, String dataSourceName) { io.vertx.rxjava.ext.jdbc.JDBCClient ret = io.vertx.rxjava.ext.jdbc.JDBCClient.newInstance(io.vertx.ext.jdbc.JDBCClient.createShared(vertx.getDelegate(), config, dataSourceName)); return ret; }
/** * Creates an instance of {@link io.vertx.rxjava.ext.stomp.StompServerHandler} using the default (compliant) implementation. * @param vertx the vert.x instance to use * @return the created {@link io.vertx.rxjava.ext.stomp.StompServerHandler} */ public static io.vertx.rxjava.ext.stomp.StompServerHandler create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.stomp.StompServerHandler ret = io.vertx.rxjava.ext.stomp.StompServerHandler.newInstance(io.vertx.ext.stomp.StompServerHandler.create(vertx.getDelegate())); return ret; }
/** * Create a OAuth2Auth provider for Microsoft Azure Active Directory * @param vertx * @param clientId the client id given to you by Azure * @param clientSecret the client secret given to you by Azure * @param guid the guid of your application given to you by Azure * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, String guid) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.AzureADAuth.create(vertx.getDelegate(), clientId, clientSecret, guid)); return ret; }
/** * Creates the handler, using the default notification address. * @param vertx the Vert.x instance * @return the handler */ public static io.vertx.rxjava.circuitbreaker.HystrixMetricHandler create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.circuitbreaker.HystrixMetricHandler ret = io.vertx.rxjava.circuitbreaker.HystrixMetricHandler.newInstance(io.vertx.circuitbreaker.HystrixMetricHandler.create(vertx.getDelegate())); return ret; }
/** * Creates a metric service for a given {@link io.vertx.rxjava.core.Vertx} instance. * @param vertx the vertx instance * @return the metrics service */ public static io.vertx.rxjava.ext.dropwizard.MetricsService create(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.dropwizard.MetricsService ret = io.vertx.rxjava.ext.dropwizard.MetricsService.newInstance(io.vertx.ext.dropwizard.MetricsService.create(vertx.getDelegate())); return ret; }
/** * Create a OAuth2Auth provider for Mailchimp * @param vertx * @param clientId the client id given to you by Mailchimp * @param clientSecret the client secret given to you by Mailchimp * @param httpClientOptions custom http client options * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, HttpClientOptions httpClientOptions) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.MailchimpAuth.create(vertx.getDelegate(), clientId, clientSecret, httpClientOptions)); return ret; }
/** * Create a OAuth2Auth provider for SoundCloud * @param vertx * @param clientId the client id given to you by SoundCloud * @param clientSecret the client secret given to you by SoundCloud * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.SoundcloudAuth.create(vertx.getDelegate(), clientId, clientSecret)); return ret; }
/** * Creates <code>Watch</code> to monitoring a specific key in the KV store. * The underlying Consul client will be created with default options. * This maps to the <a href="https://www.consul.io/api/kv.html">/v1/kv/</a> API internally. * @param key the key * @param vertx the <code>Vertx</code> instance * @return the <code>Watch</code> instance */ public static io.vertx.rxjava.ext.consul.Watch<KeyValue> key(String key, io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.consul.Watch<KeyValue> ret = io.vertx.rxjava.ext.consul.Watch.newInstance(io.vertx.ext.consul.Watch.key(key, vertx.getDelegate()), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Creates <code>Watch</code> to monitoring the list of available services. * The underlying Consul client will be created with default options. * This maps to the <a href="https://www.consul.io/docs/agent/http/catalog.html#catalog_services">/v1/catalog/services</a> API internally. * @param vertx the <code>Vertx</code> instance * @return the <code>Watch</code> instance */ public static io.vertx.rxjava.ext.consul.Watch<ServiceList> services(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.consul.Watch<ServiceList> ret = io.vertx.rxjava.ext.consul.Watch.newInstance(io.vertx.ext.consul.Watch.services(vertx.getDelegate()), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Creates <code>Watch</code> to monitoring the nodes providing the service. * The underlying Consul client will be created with default options. * This maps to the <a href="https://www.consul.io/docs/agent/http/health.html#health_service">/v1/health/service/<service></a> API internally. * @param service the service name * @param vertx the <code>Vertx</code> instance * @return the <code>Watch</code> instance */ public static io.vertx.rxjava.ext.consul.Watch<ServiceEntryList> service(String service, io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.consul.Watch<ServiceEntryList> ret = io.vertx.rxjava.ext.consul.Watch.newInstance(io.vertx.ext.consul.Watch.service(service, vertx.getDelegate()), io.vertx.lang.rx.TypeArg.unknown()); return ret; }
/** * Starts the exporter. * @param vertx the vertx instance * @param publisher the service discovery instance * @param configuration the bridge configuration if any * @param future a future on which the bridge must report the completion of the starting */ public void init(io.vertx.rxjava.core.Vertx vertx, io.vertx.rxjava.servicediscovery.spi.ServicePublisher publisher, JsonObject configuration, io.vertx.rxjava.core.Future<Void> future) { delegate.init(vertx.getDelegate(), publisher.getDelegate(), configuration, future.getDelegate()); }