public class DispatcherThread extends Thread implements Monitorable
| Modifier and Type | Class and Description |
|---|---|
static class |
DispatcherThread.DispatcherReport |
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
MILLIS_AFTER_CREATION_BEFORE_REBALANCING |
static int |
QUEUE_PERCENTAGE_TRIGGERING_REBALANCE |
static int |
SCHEDULE_TICK_NANOS |
protected boolean |
shutDown |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
DispatcherThread(Scheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
Future |
$getReport() |
Future<Monitorable[]> |
$getSubMonitorables() |
void |
addActor(Actor act) |
int |
getAccumulatedQSizes()
accumulated queue sizes of all actors
|
Actor[] |
getActors() |
int |
getLoad() |
int |
getQSize() |
Scheduler |
getScheduler() |
boolean |
isEmpty() |
boolean |
isIsolated() |
boolean |
isShutDown() |
boolean |
pollQs() |
boolean |
pollQs(Actor[] actors) |
protected CallEntry |
pollQueues(Actor[] actors) |
void |
run() |
void |
schedulePendingAdds()
add actors which have been marked to be scheduled on this
|
boolean |
schedules(Object receiverRef)
can be called from the dispacther thread itself only
|
void |
setIsolated(boolean isIsolated) |
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 SCHEDULE_TICK_NANOS
public static int QUEUE_PERCENTAGE_TRIGGERING_REBALANCE
public static int MILLIS_AFTER_CREATION_BEFORE_REBALANCING
protected boolean shutDown
public DispatcherThread(Scheduler scheduler)
public boolean isIsolated()
public void setIsolated(boolean isIsolated)
public void addActor(Actor act)
public void schedulePendingAdds()
public boolean pollQs()
public boolean pollQs(Actor[] actors)
public int getLoad()
public int getAccumulatedQSizes()
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()
public boolean schedules(Object receiverRef)
receiverRef - public Future $getReport()
$getReport in interface Monitorablepublic Future<Monitorable[]> $getSubMonitorables()
$getSubMonitorables in interface MonitorableCopyright © 2014. All rights reserved.