Package org.jivesoftware.smack.util
Class Async
- java.lang.Object
-
- org.jivesoftware.smack.util.Async
-
public class Async extends java.lang.Object
-
-
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 java.lang.Thread
daemonThreadFrom(java.lang.Runnable runnable)
static java.lang.Thread
go(java.lang.Runnable runnable)
Creates a new thread with the given Runnable, marks it daemon, starts it and returns the started thread.static java.lang.Thread
go(java.lang.Runnable runnable, java.lang.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 java.lang.Thread go(java.lang.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 java.lang.Thread go(java.lang.Runnable runnable, java.lang.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 java.lang.Thread daemonThreadFrom(java.lang.Runnable runnable)
-
-