WriterThread
The writer thread is responsible to flush the transaction transaction log
from time to time.
| Methods |
| static WriterThread |
create(Database database, int writeDelay)
Create and start a new writer thread for the given database.
|
| static WriterThread |
create(Database database, int writeDelay)
Create and start a new writer thread for the given database. If the
thread can't be created, this method returns null.
Parameters:
database - the database
writeDelay - the delay
Returns:
the writer thread object or null
|
| void |
run()
|
| void |
run()
|
| void |
setWriteDelay(int writeDelay)
Change the write delay
|
| void |
setWriteDelay(int writeDelay)
Change the write delay
Parameters:
writeDelay - the new write delay
|
| void |
startThread()
Start the thread.
|
| void |
startThread()
Start the thread. This method is called after opening the database
(to avoid deadlocks)
|
| void |
stopThread()
Stop the thread.
|
| void |
stopThread()
Stop the thread. This method is called when closing the database.
|
|