diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-10-06 18:38:00 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-10-14 02:05:29 -0500 |
commit | c23d7f4e06b63e0a2cc96330893eb0cf93d6a763 (patch) | |
tree | b2c44e796694b985d88f021087711eb22e00c3a3 /src/test/java | |
parent | 955e0c437cd9608d3929064367cc4982a795ffa7 (diff) | |
download | bukkit-c23d7f4e06b63e0a2cc96330893eb0cf93d6a763.tar bukkit-c23d7f4e06b63e0a2cc96330893eb0cf93d6a763.tar.gz bukkit-c23d7f4e06b63e0a2cc96330893eb0cf93d6a763.tar.lz bukkit-c23d7f4e06b63e0a2cc96330893eb0cf93d6a763.tar.xz bukkit-c23d7f4e06b63e0a2cc96330893eb0cf93d6a763.zip |
Add simpler API for using the scheduler. Adds BUKKIT-836
The new methods return the actual task that gets created from the
scheduler. They are also named such that auto-complete puts the
asynchronous methods after the normal ones. These two additions are
simply semantic.
Tasks now have a method to cancel themselves using their task id. This
is provided as a convenience.
A new class called SimpleRunnable was added. It is an abstract Runnable
such that anonymous classes may subclass it. It provides six convenience
methods for scheduling as appropriate. It also provides a cancel method
for convenience. The functionality of SimpleRunnable only stores an
integer representing the task id. A SimpleRunnable can only be scheduled
once; attempting to reschedule results in IllegalStateException.
Diffstat (limited to 'src/test/java')
0 files changed, 0 insertions, 0 deletions