Interface LogWriterFlushStrategy

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
CommitLogWriterFlushStrategy, RacCommitLogWriterFlushStrategy, ReadOnlyLogWriterFlushStrategy

public interface LogWriterFlushStrategy extends AutoCloseable
Strategy that controls how the Oracle LGWR (LogWriter) process is to be flushed.
Author:
Chris Cranford
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    flush(Scn currentScn)
    Perform the Oracle LGWR process flush.
     
    static boolean
    isFlushTable(TableId id, String schemaName, String flushTableName)
    Checks whether the supplied TableId is the flush table.

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • getHost

      String getHost()
      Returns:
      the host or ip address that will be flushed by the strategy
    • flush

      void flush(Scn currentScn) throws InterruptedException
      Perform the Oracle LGWR process flush.
      Parameters:
      currentScn - the current system change number
      Throws:
      InterruptedException
    • isFlushTable

      static boolean isFlushTable(TableId id, String schemaName, String flushTableName)
      Checks whether the supplied TableId is the flush table.
      Parameters:
      id - the table id
      schemaName - the schema name
      flushTableName - configured flush table name
      Returns:
      true if the table is the flush table, false otherwise