public static class MemoryMonitor.RepaintThread
extends java.lang.Thread
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
MemoryMonitor.RepaintThread.UpdateRunnable |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List |
components |
The components to repaint.
|
protected java.lang.Runtime |
runtime |
The runtime.
|
protected boolean |
suspended |
Whether or not the thread was supended.
|
protected long |
timeout |
The repaint timeout
|
protected MemoryMonitor.RepaintThread.UpdateRunnable |
updateRunnable |
Runnable for updating components.
|
| Constructor | Description |
|---|---|
RepaintThread(long timeout,
java.util.List components) |
Creates a new Thread.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected MemoryMonitor.RepaintThread.UpdateRunnable |
createUpdateRunnable() |
|
void |
run() |
The thread main method.
|
void |
safeResume() |
Resumes the thread.
|
void |
safeSuspend() |
Suspends the thread.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, 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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected long timeout
protected java.util.List components
protected java.lang.Runtime runtime
protected boolean suspended
protected MemoryMonitor.RepaintThread.UpdateRunnable updateRunnable
public RepaintThread(long timeout,
java.util.List components)
timeout - The time between two repaint in ms.components - The components to repaint.public void run()
run in class java.lang.Threadprotected MemoryMonitor.RepaintThread.UpdateRunnable createUpdateRunnable()
public void safeSuspend()
public void safeResume()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.