Package org.h2.util

Interface CacheWriter


public interface CacheWriter
The cache writer is called by the cache to persist changed data that needs to be removed from the cache.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Flush the transaction log, so that entries can be removed from the cache.
    Get the trace writer.
    void
    Persist a record.
  • Method Details

    • writeBack

      void writeBack(CacheObject entry)
      Persist a record.
      Parameters:
      entry - the cache entry
    • flushLog

      void flushLog()
      Flush the transaction log, so that entries can be removed from the cache. This is only required if the cache is full and contains data that is not yet written to the log. It is required to write the log entries to the log first, because the log is 'write ahead'.
    • getTrace

      Trace getTrace()
      Get the trace writer.
      Returns:
      the trace writer