Module io.helidon.dbclient.metrics
Package io.helidon.dbclient.metrics
Class DbClientMetricsProvider
- java.lang.Object
-
- io.helidon.dbclient.metrics.DbClientMetricsProvider
-
- All Implemented Interfaces:
DbClientServiceProvider
public class DbClientMetricsProvider extends Object implements DbClientServiceProvider
Java service loader service for DB metrics.
-
-
Constructor Summary
Constructors Constructor Description DbClientMetricsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
configKey()
The configuration key expected in config.Collection<DbClientService>
create(Config config)
Create a new interceptor instance with the configuration provided.
-
-
-
Method Detail
-
configKey
public String configKey()
Description copied from interface:DbClientServiceProvider
The configuration key expected in config. If the key exists, the builder looks intoglobal
,named
, andtyped
subkeys to configure appropriate instances. MethodDbClientServiceProvider.create(io.helidon.config.Config)
is called for each configuration as follows:global
: the configuration key is used to get a new instance- {code named}: for each configuration node with a list of nodes, a new instance is requested
- {code typed}: for each configuration node with a list of types, a new instance is requested
- Specified by:
configKey
in interfaceDbClientServiceProvider
- Returns:
- name of the configuration key (such as "tracing")
-
create
public Collection<DbClientService> create(Config config)
Description copied from interface:DbClientServiceProvider
Create a new interceptor instance with the configuration provided.- Specified by:
create
in interfaceDbClientServiceProvider
- Parameters:
config
- configuration node with additional properties that are (maybe) configured for this interceptor- Returns:
- an interceptor to handle DB statements
-
-