com.atlassian.greenhopper.global
Class TaskChain<T>

java.lang.Object
  extended by com.atlassian.greenhopper.global.TaskChain<T>

public class TaskChain<T>
extends java.lang.Object

Executes a chain of TransactionalTask objects in sequential order. If there are exceptions thrown during the execution, we roll back through the chain, undoing each task.


Constructor Summary
TaskChain(TransactionalTask<T>... tasks)
           
 
Method Summary
 void execute(T state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskChain

public TaskChain(TransactionalTask<T>... tasks)
Method Detail

execute

public void execute(T state)
             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007-2013 Atlassian. All Rights Reserved.