public class CachingThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CachingThread() |
CachingThread(Runnable r) |
CachingThread(Runnable r,
String name) |
CachingThread(String name) |
CachingThread(ThreadGroup tg,
Runnable r) |
CachingThread(ThreadGroup tg,
Runnable r,
String name) |
CachingThread(ThreadGroup tg,
Runnable r,
String name,
long priority) |
CachingThread(ThreadGroup tg,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static byte[] |
getOrCreateByteArray(int length) |
static byte[][] |
getOrCreateByteArray(int num,
int length) |
static int[] |
getOrCreateIntArray(int length) |
static void |
releaseAll()
Tell all instances to clear their caches.
|
static void |
storeArrayForReuse(Image img) |
static void |
storeForReuse(byte[] b) |
static void |
storeForReuse(byte[][] b) |
static void |
storeForReuse(int[] b) |
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public CachingThread()
public CachingThread(Runnable r)
public CachingThread(String name)
public CachingThread(ThreadGroup tg, Runnable r)
public CachingThread(ThreadGroup tg, String name)
public CachingThread(ThreadGroup tg, Runnable r, String name)
public CachingThread(ThreadGroup tg, Runnable r, String name, long priority)
public void clear()
public static final byte[][] getOrCreateByteArray(int num, int length)
public static final byte[] getOrCreateByteArray(int length)
public static final int[] getOrCreateIntArray(int length)
public static final void storeForReuse(byte[][] b)
public static final void storeForReuse(byte[] b)
public static final void storeForReuse(int[] b)
public static final void storeArrayForReuse(Image img)
public static final void releaseAll()
Copyright © 2015–2021 Fiji. All rights reserved.