RxJava



rx.schedulers
Class SwingScheduler

java.lang.Object
  extended by rx.Scheduler
      extended by rx.schedulers.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.


Nested Class Summary
 
Nested classes/interfaces inherited from class rx.Scheduler
rx.Scheduler.Inner, rx.Scheduler.Recurse
 
Method Summary
static SwingScheduler getInstance()
           
 rx.Subscription schedule(rx.functions.Action1<rx.Scheduler.Inner> action)
           
 rx.Subscription schedule(rx.functions.Action1<rx.Scheduler.Inner> action, long delayTime, java.util.concurrent.TimeUnit unit)
           
 
Methods inherited from class rx.Scheduler
degreeOfParallelism, now, schedulePeriodically, scheduleRecursive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SwingScheduler getInstance()

schedule

public rx.Subscription schedule(rx.functions.Action1<rx.Scheduler.Inner> action)
Specified by:
schedule in class rx.Scheduler

schedule

public rx.Subscription schedule(rx.functions.Action1<rx.Scheduler.Inner> action,
                                long delayTime,
                                java.util.concurrent.TimeUnit unit)
Specified by:
schedule in class rx.Scheduler