public final class AutoDisposeSingleThreadScheduler extends Object
Modifier and Type | Class and Description |
---|---|
class |
AutoDisposeSingleThreadScheduler.Cancelable
This object is returned from
schedule(Runnable, long, TimeUnit) and can be used to cancel the task - best effort. |
Constructor and Description |
---|
AutoDisposeSingleThreadScheduler(String baseThreadName) |
Modifier and Type | Method and Description |
---|---|
AutoDisposeSingleThreadScheduler.Cancelable |
schedule(Runnable runnable,
long timeout,
TimeUnit units)
Schedule the given Runnable to run at the given time period from now.
|
public AutoDisposeSingleThreadScheduler(String baseThreadName)
public AutoDisposeSingleThreadScheduler.Cancelable schedule(Runnable runnable, long timeout, TimeUnit units)
Copyright © 2018. All rights reserved.