public class RtflRuntime.GarbageCollector
extends java.lang.Thread
| Constructor and Description |
|---|
GarbageCollector(long interval,
RtflRuntime rt)
Creates a new garbage collector daemon
|
| Modifier and Type | Method and Description |
|---|---|
int |
collect()
Runs the garbage collector
|
void |
pause()
Pauses collector execution
|
boolean |
paused()
Returns whether the garbage collector is paused
|
void |
paused(boolean paused)
Sets whether the collector is paused
|
void |
run() |
void |
unpause()
Resumes collector execution
|
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, yieldpublic GarbageCollector(long interval,
RtflRuntime rt)
interval - The interval at which the collector runsrt - The runtime this garbage collector managespublic void pause()
public void unpause()
public void paused(boolean paused)
paused - Whether the collector is pausedpublic boolean paused()
public int collect()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread