Class CommitLogWriterFlushStrategy

    • Constructor Detail

      • CommitLogWriterFlushStrategy

        public CommitLogWriterFlushStrategy​(OracleConnection connection)
        Creates a transaction-commit Oracle LogWriter (LGWR) process flush strategy. This will use the existing database connection to make the flush and the connection will not be automatically closed when the strategy is closed.
        Parameters:
        connection - the connection to be used to force the flush, must not be null
      • CommitLogWriterFlushStrategy

        public CommitLogWriterFlushStrategy​(JdbcConfiguration jdbcConfig)
                                     throws SQLException
        Creates a transaction-commit Oracle LogWriter (LGWR) process flush strategy. This will create a new database connection based on the supplied JDBC configuration and the connection will automatically be closed when the strategy is closed.
        Parameters:
        jdbcConfig - the jdbc configuration
        Throws:
        SQLException - if there was a database problem
    • Method Detail

      • flush

        public void flush​(Scn currentScn)
        Description copied from interface: LogWriterFlushStrategy
        Perform the Oracle LGWR process flush.
        Specified by:
        flush in interface LogWriterFlushStrategy
        Parameters:
        currentScn - the current system change number
      • createFlushTableIfNotExists

        private void createFlushTableIfNotExists()
        Makes sure that the flush table is created in the database and that it at least has 1 row of data so that when flushes occur that the update succeeds without failure.