@Override
   public void setMetricsTrackerFactory(MetricsTrackerFactory metricsTrackerFactory)
   {
      boolean isAlreadySet = getMetricsTrackerFactory() != null;
      super.setMetricsTrackerFactory(metricsTrackerFactory);

      HikariPool p = pool;
      if (p != null) {
         if (isAlreadySet) {
            throw new IllegalStateException("MetricsTrackerFactory can only be set one time");
         }
         else {
            p.setMetricsTrackerFactory(super.getMetricsTrackerFactory());
         }
      }
   }
@ Override public void setMetricsTrackerFactory ( MetricsTrackerFactory metricsTrackerFactory ) { boolean isAlreadySet = getMetricsTrackerFactory ( ) != null ; super . setMetricsTrackerFactory ( metricsTrackerFactory ) ; HikariPool p = pool ; if ( p != null ) { if ( isAlreadySet ) { throw new IllegalStateException ( "MetricsTrackerFactory can only be set one time" ) ; } else { p . setMetricsTrackerFactory ( super . getMetricsTrackerFactory ( ) ) ; } } }
{@inheritDoc}