public class DispatcherThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
MILLIS_AFTER_CREATION_BEFORE_REBALANCING |
static int |
NUMBER_OF_MESSAGES_TO_PROCESS_PER_CHECK_FOR_NEW_ADDS |
static int |
PROFILE_INTERVAL |
static int |
QUEUE_PERCENTAGE_TRIGGERING_REBALANCE |
static int |
SCHEDULE_PER_PROFILE |
protected boolean |
shutDown |
static int |
TRIGGER_REBALANCE_COUNTER |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
DispatcherThread(Scheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActor(Actor act) |
Actor[] |
getActors() |
int |
getLoad() |
long |
getLoadNanos() |
int |
getQSize() |
Scheduler |
getScheduler() |
boolean |
isEmpty() |
boolean |
isShutDown() |
boolean |
pollQs(Actor refToExclude) |
protected CallEntry |
pollQueues(Actor[] actors,
Actor refToExclude) |
void |
run() |
void |
shutDown()
terminate operation after emptying Q
|
void |
shutDownImmediate()
terminate operation immediately.
|
String |
toString() |
void |
waitEmpty(long nanos)
blocking method, use for debugging only.
|
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, yieldpublic static int NUMBER_OF_MESSAGES_TO_PROCESS_PER_CHECK_FOR_NEW_ADDS
public static int PROFILE_INTERVAL
public static int SCHEDULE_PER_PROFILE
public static int QUEUE_PERCENTAGE_TRIGGERING_REBALANCE
public static int MILLIS_AFTER_CREATION_BEFORE_REBALANCING
public static int TRIGGER_REBALANCE_COUNTER
protected boolean shutDown
public DispatcherThread(Scheduler scheduler)
public void addActor(Actor act)
public boolean pollQs(Actor refToExclude)
refToExclude - public int getLoad()
public long getLoadNanos()
public int getQSize()
public boolean isShutDown()
public void shutDown()
public void shutDownImmediate()
public boolean isEmpty()
public void waitEmpty(long nanos)
public Scheduler getScheduler()
public Actor[] getActors()
Copyright © 2014. All rights reserved.