public static enum EConfigure.DispatcherType extends Enum<EConfigure.DispatcherType>
| Enum Constant and Description |
|---|
EBUS
Default eBus dispatcher based on a run queue, so the
dispatcher method is
EClient.doDispatch(Runnable). |
JAVAFX
Posts a task to the JavaFX GUI thread using
javafx.application.Platform.runLater(Runnable). |
SWING
Posts a task to the Swing GUI thread using
javax.swing.SwingUtilities.invokeLater(Runnable). |
| Modifier and Type | Method and Description |
|---|---|
Consumer<Runnable> |
dispatchHandle()
Returns the task dispatch method handle.
|
static EConfigure.DispatcherType |
findType(String name)
Returns the
EConfigure.DispatcherType for the given
name using case-insensitive string matching. |
boolean |
isSpecial()
Returns
true if this dispatcher type is a
special, non-configurable dispatcher. |
static EConfigure.DispatcherType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EConfigure.DispatcherType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EConfigure.DispatcherType EBUS
EClient.doDispatch(Runnable).public static final EConfigure.DispatcherType JAVAFX
javafx.application.Platform.runLater(Runnable).public static final EConfigure.DispatcherType SWING
javax.swing.SwingUtilities.invokeLater(Runnable).public static EConfigure.DispatcherType[] values()
for (EConfigure.DispatcherType c : EConfigure.DispatcherType.values()) System.out.println(c);
public static EConfigure.DispatcherType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isSpecial()
true if this dispatcher type is a
special, non-configurable dispatcher.true if a special dispatcher.public Consumer<Runnable> dispatchHandle()
null.public static EConfigure.DispatcherType findType(String name)
EConfigure.DispatcherType for the given
name using case-insensitive string matching.
If name is either null or an empty
string, then returns EBUS by
default.name - find dispatcher type with the given name
using case-insensitive matching.EBUS.Copyright © 2020. All rights reserved.