Package com.atlassian.bamboo.utils
Class BambooRunnables
java.lang.Object
com.atlassian.bamboo.utils.BambooRunnables
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
static class
static interface
BambooRunnables.Throwing<E1 extends Throwable>
static interface
BambooRunnables.Throwing1<E1 extends Throwable>
static interface
BambooRunnables.Throwing2<E1 extends Throwable,
E2 extends Throwable> static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> BambooRunnables.BambooRunnableFromCallable<V>
asBambooRunnable
(Callable<V> callable) static <V> BambooRunnables.RunnableFromCallable<V>
asJavaRunnable
(Callable<V> callable) static BambooRunnables.NotThrowing
static Runnable
Will run runnable only once.static void
runUnchecked
(BambooRunnables.ThrowingX<? extends Exception, ? extends Exception, ? extends Exception> throwingRunnable)
-
Method Details
-
asJavaRunnable
-
asBambooRunnable
public static <V> BambooRunnables.BambooRunnableFromCallable<V> asBambooRunnable(Callable<V> callable) -
from
-
runOnce
Will run runnable only once. Next calls to run will run nothing.- Parameters:
code
-- Returns:
-
runUnchecked
public static void runUnchecked(BambooRunnables.ThrowingX<? extends Exception, ? extends Exception, ? extends Exception> throwingRunnable)
-