111 |
|
} |
112 |
|
|
113 |
|
/** |
114 |
< |
* Returns the period, or zero if non-periodic |
114 |
> |
* Returns the period, or zero if non-periodic. |
115 |
> |
* |
116 |
|
* @return the period |
117 |
|
*/ |
118 |
|
public long getPeriod(TimeUnit unit) { |
198 |
|
public boolean remove(Object x) { return dq.remove(x); } |
199 |
|
public boolean contains(Object x) { return dq.contains(x); } |
200 |
|
public int size() { return dq.size(); } |
201 |
< |
public boolean isEmpty() { return dq.isEmpty(); } |
201 |
> |
public boolean isEmpty() { return dq.isEmpty(); } |
202 |
|
public Iterator<Runnable> iterator() { |
203 |
|
return new Iterator<Runnable>() { |
204 |
|
private Iterator<DelayedTask> it = dq.iterator(); |
426 |
|
} |
427 |
|
|
428 |
|
/** |
429 |
< |
* Execute command with zero required delay |
429 |
> |
* Execute command with zero required delay. |
430 |
> |
* |
431 |
|
* @param command the task to execute |
432 |
|
* @throws RejectedExecutionException at discretion of |
433 |
|
* <tt>RejectedExecutionHandler</tt>, if task cannot be accepted |