| java.lang.Object | |
| ↳ | com.davidluoye.support.thread.ThreadUtils |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ThreadUtils() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static void |
addThreadPool(Runnable action)
execute an runnable action in non-ui-thread in parallel
| ||||||||||
| static void |
execute(Runnable action, long delay)
execute an delay runnable action in non-ui-thread
| ||||||||||
| static void |
execute(Runnable action)
execute an runnable action in non-ui-thread
| ||||||||||
| static void |
executeRemove(Runnable action)
remove an runnable action from non-ui-thread
| ||||||||||
| static boolean | isUiThread() | ||||||||||
| static void | notify(Object obj) | ||||||||||
| static void |
post(Runnable action, long delay)
post an delay runnable action in ui thread
| ||||||||||
| static void |
post(Runnable action)
post an runnable action in ui thread
| ||||||||||
| static void |
postRemove(Runnable action)
remove an runnable action from ui thread
| ||||||||||
| static void | sleep(long ms) | ||||||||||
| static void | wait(Object obj) | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
execute an runnable action in non-ui-thread in parallel
execute an delay runnable action in non-ui-thread
execute an runnable action in non-ui-thread
remove an runnable action from non-ui-thread
post an delay runnable action in ui thread
post an runnable action in ui thread
remove an runnable action from ui thread