public class BACIDispatcher
extends java.lang.Object
| Constructor and Description |
|---|
BACIDispatcher(java.util.concurrent.ThreadFactory threadFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(PrioritizedRunnable action)
Execute action.
|
void |
shutdown()
Shutdown dispatcher.
|
public BACIDispatcher(java.util.concurrent.ThreadFactory threadFactory)
threadFactory - thread factory to be used to create thread, if null no factory is being usedpublic boolean execute(PrioritizedRunnable action)
BACIDispatcher uses its own blocking policy:
creating a new thread, which will call blocking execute.action - action to execute.true on success.public void shutdown()