public static class MemoryMonitor.RepaintThread
extends java.lang.Thread
Modifier and Type | Class and Description |
---|---|
protected class |
MemoryMonitor.RepaintThread.UpdateRunnable |
Modifier and Type | Field and 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 and Description |
---|
RepaintThread(long timeout,
java.util.List components)
Creates a new Thread.
|
Modifier and Type | Method and Description |
---|---|
protected MemoryMonitor.RepaintThread.UpdateRunnable |
createUpdateRunnable() |
void |
run()
The thread main method.
|
void |
safeResume()
Resumes the thread.
|
void |
safeSuspend()
Suspends the thread.
|
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
protected 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 interface java.lang.Runnable
run
in class java.lang.Thread
protected MemoryMonitor.RepaintThread.UpdateRunnable createUpdateRunnable()
public void safeSuspend()
public void safeResume()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.