Class MetricsImpl


  • public class MetricsImpl
    extends Metrics
    Metrics collected by the JDBC driver.
    • Constructor Detail

      • MetricsImpl

        public MetricsImpl()
    • Method Detail

      • begin

        public void begin​(Metrics.ConnectionEvent event)
        Description copied from class: Metrics
        All begin and end calls are noop in this class because this class is instantiated when metrics capturing is disabled. The subclass of this is instantiated when metrics capturing is enabled. This is to avoid 'is capturing metrics enabled' checks in begin and end methods.
        Overrides:
        begin in class Metrics
      • close

        public void close()
        The map events and metrics is added to the collection.
        Overrides:
        close in class Metrics
        Parameters:
        connectionMetricsMap -