Top Description Methods
org.h2.util

public Interface CacheWriter

Imports
org.h2.message.Trace

The cache writer is called by the cache to persist changed data that needs to be removed from the cache.

Method Summary

Modifier and TypeMethod and Description
public void
flushLog()

Flush the transaction log, so that entries can be removed from the cache.

public Trace

Returns:

the trace writer
getTrace
()

Get the trace writer.

public void
writeBack(CacheObject
the cache entry
entry
)

Persist a record.

Method Detail

flushLogback to summary
public 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'.

getTraceback to summary
public Trace getTrace()

Get the trace writer.

Returns:Trace

the trace writer

writeBackback to summary
public void writeBack(CacheObject entry)

Persist a record.

Parameters
entry:CacheObject

the cache entry