Class JDBCDataSource
- java.lang.Object
-
- io.vertx.mutiny.servicediscovery.types.JDBCDataSource
-
public class JDBCDataSource extends Object
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JDBCDataSource>
__TYPE_ARG
static String
TYPE
static String
UNKNOWN
Unknown type.
-
Constructor Summary
Constructors Constructor Description JDBCDataSource(io.vertx.servicediscovery.types.JDBCDataSource delegate)
JDBCDataSource(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.vertx.servicediscovery.Record
createRecord(String name, io.vertx.core.json.JsonObject location, io.vertx.core.json.JsonObject metadata)
boolean
equals(Object o)
io.vertx.servicediscovery.types.JDBCDataSource
getDelegate()
static io.smallrye.mutiny.Uni<JDBCClient>
getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static io.smallrye.mutiny.Uni<JDBCClient>
getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static io.smallrye.mutiny.Uni<JDBCClient>
getJDBCClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static io.smallrye.mutiny.Uni<JDBCClient>
getJDBCClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
.static JDBCClient
getJDBCClientAndAwait(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject)
.static JDBCClient
getJDBCClientAndAwait(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
static JDBCClient
getJDBCClientAndAwait(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function)
.static JDBCClient
getJDBCClientAndAwait(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function,JsonObject)
.static void
getJDBCClientAndForget(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject)
that ignores the result of the operation.static void
getJDBCClientAndForget(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject,JsonObject)
that ignores the result of the operation.static void
getJDBCClientAndForget(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function)
that ignores the result of the operation.static void
getJDBCClientAndForget(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function,JsonObject)
that ignores the result of the operation.int
hashCode()
static JDBCDataSource
newInstance(io.vertx.servicediscovery.types.JDBCDataSource arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JDBCDataSource> __TYPE_ARG
-
UNKNOWN
public static final String UNKNOWN
Unknown type.- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JDBCDataSource
public JDBCDataSource(io.vertx.servicediscovery.types.JDBCDataSource delegate)
-
JDBCDataSource
public JDBCDataSource(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.servicediscovery.types.JDBCDataSource getDelegate()
-
createRecord
public static io.vertx.servicediscovery.Record createRecord(String name, io.vertx.core.json.JsonObject location, io.vertx.core.json.JsonObject metadata)
-
getJDBCClient
@CheckReturnValue public static io.smallrye.mutiny.Uni<JDBCClient> getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optional- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
getJDBCClientAndAwait
public static JDBCClient getJDBCClientAndAwait(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
discovery
- The service discovery instancefilter
- The filter, optional- Returns:
- the JDBCClient instance produced by the operation.
-
getJDBCClientAndForget
public static void getJDBCClientAndForget(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject)
that ignores the result of the operation.This method subscribes on the result of
getJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject)
but you don't need to compose it with other operations.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optional
-
getJDBCClient
@CheckReturnValue public static io.smallrye.mutiny.Uni<JDBCClient> getJDBCClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
discovery
- The service discovery instancefilter
- The filter (must not benull
)- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
getJDBCClientAndAwait
public static JDBCClient getJDBCClientAndAwait(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
discovery
- The service discovery instancefilter
- The filter (must not benull
)- Returns:
- the JDBCClient instance produced by the operation.
-
getJDBCClientAndForget
public static void getJDBCClientAndForget(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function)
that ignores the result of the operation.This method subscribes on the result of
getJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function)
but you don't need to compose it with other operations.- Parameters:
discovery
- The service discovery instancefilter
- The filter (must not benull
)
-
getJDBCClient
@CheckReturnValue public static io.smallrye.mutiny.Uni<JDBCClient> getJDBCClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- the consumer configuration- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
getJDBCClientAndAwait
public static JDBCClient getJDBCClientAndAwait(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject,JsonObject)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- the consumer configuration- Returns:
- the JDBCClient instance produced by the operation.
-
getJDBCClientAndForget
public static void getJDBCClientAndForget(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject consumerConfiguration)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject,JsonObject)
that ignores the result of the operation.This method subscribes on the result of
getJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject,JsonObject)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,JsonObject,JsonObject)
but you don't need to compose it with other operations.- Parameters:
discovery
- The service discovery instancefilter
- The filter, optionalconsumerConfiguration
- the consumer configuration
-
getJDBCClient
@CheckReturnValue public static io.smallrye.mutiny.Uni<JDBCClient> getJDBCClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
Convenient method that looks for a JDBC datasource source and provides the configuredJDBCClient
. The async result is marked as failed is there are no matching services, or if the lookup fails.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
discovery
- The service discovery instancefilter
- The filter, must not benull
consumerConfiguration
- the consumer configuration- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
getJDBCClientAndAwait
public static JDBCClient getJDBCClientAndAwait(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
Blocking variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function,JsonObject)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
discovery
- The service discovery instancefilter
- The filter, must not benull
consumerConfiguration
- the consumer configuration- Returns:
- the JDBCClient instance produced by the operation.
-
getJDBCClientAndForget
public static void getJDBCClientAndForget(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject consumerConfiguration)
Variant ofgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function,JsonObject)
that ignores the result of the operation.This method subscribes on the result of
getJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function,JsonObject)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromgetJDBCClient(io.vertx.mutiny.servicediscovery.ServiceDiscovery,Function,JsonObject)
but you don't need to compose it with other operations.- Parameters:
discovery
- The service discovery instancefilter
- The filter, must not benull
consumerConfiguration
- the consumer configuration
-
newInstance
public static JDBCDataSource newInstance(io.vertx.servicediscovery.types.JDBCDataSource arg)
-
-