public class ManyToOneConcurrentArrayQueueDispatcher extends Thread implements Dispatcher
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
ManyToOneConcurrentArrayQueueDispatcher(int mailboxSize,
long fixedBackoff,
boolean notifyOnSend,
int throttlingCount,
int totalSendRetries) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close me.
|
int |
concurrencyCapacity()
Answer the total capacity for concurrent operations.
|
void |
execute(Mailbox mailbox)
Execute message dispatching for the
mailbox's next message(s). |
boolean |
isClosed()
Answer whether or not I am closed.
|
protected Mailbox |
mailbox() |
boolean |
requiresExecutionNotification()
Answer whether or not I require notification of execution.
|
void |
run() |
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, toString, yieldprotected ManyToOneConcurrentArrayQueueDispatcher(int mailboxSize,
long fixedBackoff,
boolean notifyOnSend,
int throttlingCount,
int totalSendRetries)
public void close()
Dispatcherclose in interface Dispatcherpublic boolean isClosed()
DispatcherisClosed in interface Dispatcherpublic int concurrencyCapacity()
DispatcherconcurrencyCapacity in interface Dispatcherpublic void execute(Mailbox mailbox)
Dispatchermailbox's next message(s).execute in interface Dispatchermailbox - the Mailbox to execute message dispatchingpublic boolean requiresExecutionNotification()
DispatcherrequiresExecutionNotification in interface Dispatcherprotected Mailbox mailbox()
Copyright © 2021. All rights reserved.