Improve java docs.

This commit is contained in:
asofold 2015-01-17 04:56:22 +01:00
parent a4240dcb69
commit 6de0ea94bb
3 changed files with 15 additions and 9 deletions

View File

@ -200,7 +200,8 @@ public class BukkitLogManager extends AbstractLogManager implements INotifyReloa
}
/**
* Necessary logging to a primary thread task (TickTask).
* Necessary logging to a primary thread task (TickTask) or asynchronously.
* This can be called multiple times without causing damage.
*/
public void startTasks() {
// TODO: Schedule / hide (redundant calls mean no harm, at present).

View File

@ -32,6 +32,10 @@ public class BukkitLogNodeDispatcher extends AbstractLogNodeDispatcher { // TODO
this.plugin = plugin;
}
/**
* Necessary logging to a primary thread task (TickTask) or asynchronously.
* This can be called multiple times without causing damage.
*/
public void startTasks() {
// TODO: This is a temporary solution. Needs on-demand scheduling [or a wrapper task].
TickTask.addTickListener(taskPrimary);

View File

@ -183,6 +183,7 @@ public class TickTask implements Runnable {
* <li>Thread safe.</li>
* <li>Does not work if the TickTask is locked.</li>
* <li>For OnDemandTickListenerS, setRegistered(true) will get called if not locked.</li>
* <li>Will not add the same instance twice, but will call setRegistered each time for OnDemandTickListener instances.</li>
* @param listener
*/
public static void addTickListener(TickListener listener) {