public class MemoryMonitor extends Object implements Runnable
IMainFrame.| Modifier and Type | Field and Description |
|---|---|
private boolean |
isStopped
A flag whether or not the thread should be stopped.
|
private static org.apache.log4j.Logger |
logger |
private long |
sleepDelay
The sleep sleepDelay for this thread in Milliseconds.
|
| Constructor and Description |
|---|
MemoryMonitor()
This is the standard constructor.
|
MemoryMonitor(long sleepDelay)
Create a new CleanerTask with a specified sleepDelay.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSleepDelay() |
boolean |
isStopped() |
void |
run()
Starts the memory monitor thread
|
void |
setSleepDelay(long sleepDelay) |
void |
setStopped(boolean isStopped) |
void |
stop() |
private static final org.apache.log4j.Logger logger
private long sleepDelay
private boolean isStopped
public MemoryMonitor()
public MemoryMonitor(long sleepDelay)
sleepDelay - - in MillisecondsCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.