com.atlassian.bamboo.variable
Interface CustomVariableContextRunner
- All Known Implementing Classes:
- CustomVariableContextRunnerImpl
@Internal
public interface CustomVariableContextRunner
Interface used to execute provided Runnable
or Callable
in Bamboo CustomVariableContext
variable aware
ThreadLocal
.
This assures all defined variables should be evaluated properly.
Main purpose of this interface is to assure all ThreadLocal
variables would be cleaned up properly when Runnable
or Callable
code is executed and variable context is not required anymore to avoid memory leaks.
execute
void execute(CommonContext buildContext,
@NotNull
Runnable runnable)
execute
void execute(PlanIdentifier plan,
@NotNull
Runnable runnable)
execute
<V> V execute(CommonContext context,
@NotNull
Callable<V> callable)
throws Exception
- Throws:
Exception
execute
<V> V execute(PlanIdentifier plan,
@NotNull
Callable<V> callable)
throws Exception
- Throws:
Exception
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.