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