public class KiWiGarbageCollector extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
KiWiGarbageCollector(KiWiPersistence persistence) |
Modifier and Type | Method and Description |
---|---|
void |
addNodeTableDependency(String tableName,
String columnName)
Add information about a dependency of a column in some table to the "nodes" table; this information
is used when cleaning up unreferenced deleted entries in the nodes table.
|
void |
addTripleTableDependency(String tableName,
String columnName)
Add information about a dependency of a column in some table to the "triples" table; this information
is used when cleaning up unreferenced deleted entries in the triples table.
|
protected boolean |
checkConsistency() |
protected void |
fixConsistency() |
protected int |
garbageCollect() |
long |
getInterval()
Get the interval to wait between garbage collections (milliseconds)
|
void |
run()
Run the garbage collector thread.
|
void |
setInterval(long interval)
Set the interval to wait between garbage collections (milliseconds)
|
void |
shutdown() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public KiWiGarbageCollector(KiWiPersistence persistence)
public long getInterval()
public void setInterval(long interval)
interval
- public void addTripleTableDependency(String tableName, String columnName)
tableName
- columnName
- public void addNodeTableDependency(String tableName, String columnName)
tableName
- columnName
- protected boolean checkConsistency() throws SQLException
SQLException
protected void fixConsistency() throws SQLException
SQLException
protected int garbageCollect() throws SQLException
SQLException
public void run()
run
in interface Runnable
run
in class Thread
Thread.start()
,
Thread.stop()
public void shutdown()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.