public enum UpdateThreadType extends java.lang.Enum<UpdateThreadType>
Enum Constant and Description |
---|
HANDLER_THREAD
Similar to
THREAD , only that this uses a HandlerThread , rather than a regular Java thread. |
MAIN
Run SweetBlue's update logic on the main thread.
|
THREAD
This option creates a new thread for all of SweetBlue's update logic.
|
USER_CUSTOM
If you wish to have SweetBlue run it's logic on a thread you've already created, you must use this option.
|
Modifier and Type | Method and Description |
---|---|
static UpdateThreadType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UpdateThreadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateThreadType THREAD
public static final UpdateThreadType MAIN
public static final UpdateThreadType USER_CUSTOM
ThreadHandler
, and pass in your thread instance in the constructor.public static final UpdateThreadType HANDLER_THREAD
THREAD
, only that this uses a HandlerThread
, rather than a regular Java thread.public static UpdateThreadType[] values()
for (UpdateThreadType c : UpdateThreadType.values()) System.out.println(c);
public static UpdateThreadType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null