RxJava
rx.concurrency
Class SwingScheduler
java.lang.Object
rx.Scheduler
rx.concurrency.SwingScheduler
public final class SwingScheduler
- extends rx.Scheduler
Executes work on the Swing UI thread.
This scheduler should only be used with actions that execute quickly.
|
Method Summary |
static SwingScheduler |
getInstance()
|
|
schedule(T state,
rx.util.functions.Func2<? super rx.Scheduler,? super T,? extends rx.Subscription> action)
|
|
schedule(T state,
rx.util.functions.Func2<? super rx.Scheduler,? super T,? extends rx.Subscription> action,
long dueTime,
java.util.concurrent.TimeUnit unit)
|
|
schedulePeriodically(T state,
rx.util.functions.Func2<? super rx.Scheduler,? super T,? extends rx.Subscription> action,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
|
| Methods inherited from class rx.Scheduler |
degreeOfParallelism, now, schedule, schedule, schedule, schedule, schedulePeriodically |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static SwingScheduler getInstance()
schedule
public <T> rx.Subscription schedule(T state,
rx.util.functions.Func2<? super rx.Scheduler,? super T,? extends rx.Subscription> action)
- Specified by:
schedule in class rx.Scheduler
schedule
public <T> rx.Subscription schedule(T state,
rx.util.functions.Func2<? super rx.Scheduler,? super T,? extends rx.Subscription> action,
long dueTime,
java.util.concurrent.TimeUnit unit)
- Specified by:
schedule in class rx.Scheduler
schedulePeriodically
public <T> rx.Subscription schedulePeriodically(T state,
rx.util.functions.Func2<? super rx.Scheduler,? super T,? extends rx.Subscription> action,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
- Overrides:
schedulePeriodically in class rx.Scheduler