Package org.jivesoftware.smack.util
Class Async
- java.lang.Object
-
- org.jivesoftware.smack.util.Async
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Async.ThrowingRunnable
LikeRunnable
, but allows therunOrThrow()
method to throw an exception.
-
Constructor Summary
Constructors Constructor Description Async()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Thread
daemonThreadFrom(Runnable runnable)
static Thread
go(Runnable runnable)
Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.static Thread
go(Runnable runnable, String threadName)
Creates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started thread.
-
-
-
Constructor Detail
-
Async
public Async()
-
-
Method Detail
-
go
public static Thread go(Runnable runnable)
Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.- Parameters:
runnable
- TODO javadoc me please- Returns:
- the started thread.
-
go
public static Thread go(Runnable runnable, String threadName)
Creates a new thread with the given Runnable, marks it daemon, sets the name, starts it and returns the started thread.- Parameters:
runnable
- TODO javadoc me pleasethreadName
- the thread name.- Returns:
- the started thread.
-
daemonThreadFrom
public static Thread daemonThreadFrom(Runnable runnable)
-
-