mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 15:32:06 +01:00
[core] Make ScheduledAction.cancel() return boolean and add javadoc
This commit is contained in:
parent
6daf19dbd3
commit
4e5536e227
1 changed files with 7 additions and 2 deletions
|
@ -32,8 +32,13 @@ public class ScheduledAction implements Delayed {
|
||||||
this.smackReactor = smackReactor;
|
this.smackReactor = smackReactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void cancel() {
|
/**
|
||||||
smackReactor.cancel(this);
|
* Cancels this scheduled action.
|
||||||
|
*
|
||||||
|
* @return <code>true</code> if the scheduled action was still pending and got removed, <code>false</code> otherwise.
|
||||||
|
*/
|
||||||
|
public boolean cancel() {
|
||||||
|
return smackReactor.cancel(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDue() {
|
public boolean isDue() {
|
||||||
|
|
Loading…
Reference in a new issue