Package org.jivesoftware.smack.util
Class Async.ThrowingRunnable
- java.lang.Object
-
- org.jivesoftware.smack.util.Async.ThrowingRunnable
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- Async
public abstract static class Async.ThrowingRunnable extends Object implements Runnable
LikeRunnable
, but allows therunOrThrow()
method to throw an exception.If the exception is an instance of
RuntimeException
, then it will be re-thrown, otherwise it will be simply logged.
-
-
Constructor Summary
Constructors Constructor Description ThrowingRunnable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
run()
abstract void
runOrThrow()
-
-
-
Constructor Detail
-
ThrowingRunnable
public ThrowingRunnable()
-
-