public class

Threads

extends Object
java.lang.Object
   ↳ com.davidluoye.support.thread.Threads

Summary

Public Constructors
Threads()
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, long milliseconds)
static void wait(Object obj)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Threads ()

Public Methods

public static void addThreadPool (Runnable action)

execute an runnable action in non-ui-thread in parallel

public static void execute (Runnable action, long delay)

execute an delay runnable action in non-ui-thread

public static void execute (Runnable action)

execute an runnable action in non-ui-thread

public static void executeRemove (Runnable action)

remove an runnable action from non-ui-thread

public static boolean isUiThread ()

public static void notify (Object obj)

public static void post (Runnable action, long delay)

post an delay runnable action in ui thread

public static void post (Runnable action)

post an runnable action in ui thread

public static void postRemove (Runnable action)

remove an runnable action from ui thread

public static void sleep (long ms)

public static void wait (Object obj, long milliseconds)

public static void wait (Object obj)