public class WorkerThread extends AbstractWorkerThread
Thread.State, Thread.UncaughtExceptionHandler| 限定符和类型 | 字段和说明 |
|---|---|
protected TaskQueue |
requestQueue
Task queue
|
clientMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
WorkerThread(Client client,
RegistryClientConfig config,
RegisterCache registerCache)
Instantiates a new Worker thread.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handle()
Handle.
|
void |
schedule(List<TaskEvent> events)
Schedule.
|
void |
schedule(TaskEvent event)
Schedule.
|
runactiveCount, 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, yieldprotected final TaskQueue requestQueue
public WorkerThread(Client client, RegistryClientConfig config, RegisterCache registerCache)
client - the client connectionconfig - the configCopyright © 2023 The Ant Financial. All rights reserved.