Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BukkitWorker.java
1 package org.bukkit.scheduler;
2 
3 import org.bukkit.plugin.Plugin;
4 
5 /**
6  * Represents a worker thread for the scheduler. This gives information about
7  * the Thread object for the task, owner of the task and the taskId.
8  * <p>
9  * Workers are used to execute async tasks.
10  */
11 public interface BukkitWorker {
12 
13  /**
14  * Returns the taskId for the task being executed by this worker.
15  *
16  * @return Task id number
17  */
18  public int getTaskId();
19 
20  /**
21  * Returns the Plugin that owns this task.
22  *
23  * @return The Plugin that owns the task
24  */
25  public Plugin getOwner();
26 
27  /**
28  * Returns the thread for the worker.
29  *
30  * @return The Thread object for the worker
31  */
32  public Thread getThread();
33 
34 }