Package com.atlassian.bamboo.variable
Interface CustomVariableContextRunner
-
- All Known Implementing Classes:
CustomVariableContextRunnerImpl
@Internal public interface CustomVariableContextRunnerInterface used to execute providedRunnableorCallablein BambooCustomVariableContextvariable awareThreadLocal. This assures all defined variables should be evaluated properly. Main purpose of this interface is to assure allThreadLocalvariables would be cleaned up properly whenRunnableorCallablecode is executed and variable context is not required anymore to avoid memory leaks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(PlanIdentifier plan, @NotNull Runnable runnable)<V> Vexecute(PlanIdentifier plan, @NotNull Callable<V> callable)voidexecute(CommonContext buildContext, @NotNull Runnable runnable)<V> Vexecute(CommonContext context, @NotNull Callable<V> callable)
-
-
-
Method Detail
-
execute
void execute(CommonContext buildContext, @NotNull @NotNull Runnable runnable)
-
execute
void execute(PlanIdentifier plan, @NotNull @NotNull Runnable runnable)
-
execute
<V> V execute(CommonContext context, @NotNull @NotNull Callable<V> callable) throws Exception
- Throws:
Exception
-
execute
<V> V execute(PlanIdentifier plan, @NotNull @NotNull Callable<V> callable) throws Exception
- Throws:
Exception
-
-