Class AbstractJDBCLocker

    • Field Detail

      • createTablesOnStartup

        protected boolean createTablesOnStartup
      • queryTimeout

        protected int queryTimeout
    • Constructor Detail

      • AbstractJDBCLocker

        public AbstractJDBCLocker()
    • Method Detail

      • configure

        public void configure​(PersistenceAdapter adapter)
                       throws IOException
        Description copied from interface: Locker
        Optionally configure the locker with the persistence adapter currently used You can use persistence adapter configuration details like, data directory datasource, etc. to be used by the locker
      • getStatements

        protected Statements getStatements()
      • setDataSource

        public void setDataSource​(DataSource dataSource)
      • setStatements

        public void setStatements​(Statements statements)
      • getQueryTimeout

        public int getQueryTimeout()
      • setQueryTimeout

        public void setQueryTimeout​(int queryTimeout)
      • setCreateTablesOnStartup

        public void setCreateTablesOnStartup​(boolean createTablesOnStartup)
      • close

        protected void close​(Connection connection)
      • close

        protected void close​(Statement statement)
      • preStart

        public void preStart()
        Description copied from class: ServiceSupport
        handle for various operations before starting the service (like locking)
        preStart in class ServiceSupport