|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.store.WriterThread
public class WriterThread
The writer thread is responsible to flush the transaction log file from time to time.
Method Summary | |
---|---|
static WriterThread |
create(Database database,
int writeDelay)
Create and start a new writer thread for the given database. |
void |
deleteLogFileLater(java.lang.String fileName)
Delete the following log file later on. |
void |
run()
|
void |
setWriteDelay(int writeDelay)
Change the write delay |
void |
stopThread()
Stop the thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setWriteDelay(int writeDelay)
writeDelay
- the new write delaypublic static WriterThread create(Database database, int writeDelay)
database
- the databasewriteDelay
- the delay
public void run()
run
in interface java.lang.Runnable
public void stopThread() throws java.sql.SQLException
java.sql.SQLException
public void deleteLogFileLater(java.lang.String fileName) throws java.sql.SQLException
fileName
- the name of the file to delete
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |