1   package com.atlassian.core.task;
2   
3   import java.io.Serializable;
4   
5   /**
6    * An Arbitary task used to execute some code. Tasks can be queued up on a queue and executed when the
7    * queue is flushed
8    * @see TaskQueue
9    *
10   * @author Ross Mason
11   */
12  public interface Task extends Serializable
13  {
14     /**
15      * The execute method is used to invoke the task.
16      *
17      * @throws Exception if the task fails to execute
18      */
19      public void execute() throws Exception;
20  }