public class PayloadThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected Object |
payload |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
PayloadThread(Runnable target) |
PayloadThread(Runnable target,
String name) |
PayloadThread(String name) |
| Modifier and Type | Method and Description |
|---|---|
static PayloadThread |
current() |
Object |
payload() |
void |
setPayload(Object payload) |
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, yieldprotected Object payload
public PayloadThread(Runnable target)
public PayloadThread(String name)
public final Object payload()
public final void setPayload(Object payload)
public static PayloadThread current()
Copyright © 2019. All rights reserved.