public class DefaultLithoHandlerDynamicPriority extends Object implements LithoHandler
LithoHandler.DefaultLithoHandler
Constructor and Description |
---|
DefaultLithoHandlerDynamicPriority(HandlerThread handlerThread)
Creates a
LithoHandler instance backed by a HandlerThread . |
Modifier and Type | Method and Description |
---|---|
boolean |
isTracing() |
void |
post(Runnable runnable,
String tag) |
void |
postAtFront(Runnable runnable,
String tag) |
void |
remove(Runnable runnable) |
void |
setThreadPriority(int priority) |
public DefaultLithoHandlerDynamicPriority(HandlerThread handlerThread)
LithoHandler
instance backed by a HandlerThread
. Starts the
HandlerThread if it's not started yet.public boolean isTracing()
isTracing
in interface LithoHandler
public void post(Runnable runnable, String tag)
post
in interface LithoHandler
public void postAtFront(Runnable runnable, String tag)
postAtFront
in interface LithoHandler
public void remove(Runnable runnable)
remove
in interface LithoHandler
public void setThreadPriority(int priority)