@Internal
public interface CustomVariableContextRunner
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.Modifier and Type | Method and Description |
---|---|
<V> V |
execute(CommonContext context,
Callable<V> callable) |
void |
execute(CommonContext buildContext,
Runnable runnable) |
<V> V |
execute(PlanIdentifier plan,
Callable<V> callable) |
void |
execute(PlanIdentifier plan,
Runnable runnable) |
void execute(CommonContext buildContext, @NotNull Runnable runnable)
void execute(PlanIdentifier plan, @NotNull Runnable runnable)
<V> V execute(CommonContext context, @NotNull Callable<V> callable) throws Exception
Exception
<V> V execute(PlanIdentifier plan, @NotNull Callable<V> callable) throws Exception
Exception
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.