@LevelUpApi(contract=INTERNAL) @ThreadSafe public final class ThreadUtil extends Object
Modifier and Type | Method and Description |
---|---|
static HandlerThread |
getHandlerThread(String name,
int priority)
Obtains a new
HandlerThread that is started. |
public static HandlerThread getHandlerThread(String name, int priority)
HandlerThread
that is started.name
- Name to give to the HandlerThread. Useful for debugging, as the thread name is
shown in DDMS.priority
- Priority of the thread. One of the Process
priority
constants.Thread.start()
method has already been called.