Class HikariUrlDataSource

  • All Implemented Interfaces:
    com.zaxxer.hikari.HikariConfigMXBean, java.io.Closeable, java.lang.AutoCloseable, java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource

    public class HikariUrlDataSource
    extends com.zaxxer.hikari.HikariDataSource
    Extends the Hikari data source to add getUrl/setUrl to be more compliant with the other datasource types.
    Since:
    1.0
    Author:
    James Kleeh
    • Constructor Summary

      Constructors 
      Constructor Description
      HikariUrlDataSource​(com.zaxxer.hikari.HikariConfig configuration)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUrl()
      Used by the JDBC health indicator when an exception occurs.
      void setUrl​(java.lang.String url)
      Setter.
      • Methods inherited from class com.zaxxer.hikari.HikariDataSource

        close, evictConnection, getConnection, getConnection, getHikariConfigMXBean, getHikariPoolMXBean, getLoginTimeout, getLogWriter, getParentLogger, isClosed, isRunning, isWrapperFor, setHealthCheckRegistry, setLoginTimeout, setLogWriter, setMetricRegistry, setMetricsTrackerFactory, toString, unwrap
      • Methods inherited from class com.zaxxer.hikari.HikariConfig

        addDataSourceProperty, addHealthCheckProperty, copyStateTo, getCatalog, getConnectionInitSql, getConnectionTestQuery, getConnectionTimeout, getDataSource, getDataSourceClassName, getDataSourceJNDI, getDataSourceProperties, getDriverClassName, getExceptionOverrideClassName, getHealthCheckProperties, getHealthCheckRegistry, getIdleTimeout, getInitializationFailTimeout, getJdbcUrl, getKeepaliveTime, getLeakDetectionThreshold, getMaximumPoolSize, getMaxLifetime, getMetricRegistry, getMetricsTrackerFactory, getMinimumIdle, getPassword, getPoolName, getScheduledExecutor, getSchema, getThreadFactory, getTransactionIsolation, getUsername, getValidationTimeout, isAllowPoolSuspension, isAutoCommit, isIsolateInternalQueries, isReadOnly, isRegisterMbeans, setAllowPoolSuspension, setAutoCommit, setCatalog, setConnectionInitSql, setConnectionTestQuery, setConnectionTimeout, setDataSource, setDataSourceClassName, setDataSourceJNDI, setDataSourceProperties, setDriverClassName, setExceptionOverrideClassName, setHealthCheckProperties, setIdleTimeout, setInitializationFailTimeout, setIsolateInternalQueries, setJdbcUrl, setKeepaliveTime, setLeakDetectionThreshold, setMaximumPoolSize, setMaxLifetime, setMinimumIdle, setPassword, setPoolName, setReadOnly, setRegisterMbeans, setScheduledExecutor, setSchema, setThreadFactory, setTransactionIsolation, setUsername, setValidationTimeout, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.sql.CommonDataSource

        createShardingKeyBuilder
      • Methods inherited from interface javax.sql.DataSource

        createConnectionBuilder
    • Constructor Detail

      • HikariUrlDataSource

        public HikariUrlDataSource​(com.zaxxer.hikari.HikariConfig configuration)
        Constructor.
        Parameters:
        configuration - hikari configuration
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Used by the JDBC health indicator when an exception occurs.
        Returns:
        jdbc url
      • setUrl

        public void setUrl​(java.lang.String url)
        Setter.
        Parameters:
        url - url of connection