com.atlassian.bamboo.variable
Interface CustomVariableContextRunner

All Known Implementing Classes:
CustomVariableContextRunnerImpl

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.


Method Summary
<V> V
execute(BuildContext buildContext, java.util.concurrent.Callable<V> callable)
           
 void execute(BuildContext buildContext, java.lang.Runnable runnable)
           
<V> V
execute(Plan plan, java.util.concurrent.Callable<V> callable)
           
 void execute(Plan plan, java.lang.Runnable runnable)
           
 

Method Detail

execute

void execute(BuildContext buildContext,
             java.lang.Runnable runnable)

execute

void execute(Plan plan,
             java.lang.Runnable runnable)

execute

<V> V execute(BuildContext buildContext,
              java.util.concurrent.Callable<V> callable)
          throws java.lang.Exception
Throws:
java.lang.Exception

execute

<V> V execute(Plan plan,
              java.util.concurrent.Callable<V> callable)
          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011 Atlassian. All Rights Reserved.