Package at.jku.ssw.fp.sect10_5
Class SwingScheduler
- java.lang.Object
-
- io.reactivex.Scheduler
-
- at.jku.ssw.fp.sect10_5.SwingScheduler
-
public class SwingScheduler extends Scheduler
Executes work on the Swing UI thread. This scheduler should only be used with actions that execute quickly. If the calling thread is the Swing UI thread, and no delay parameter is provided, the action will run immediately. Otherwise, if the calling thread is NOT the Swing UI thread, the action will be deferred until all pending UI events have been processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SwingScheduler.SwingWorker
-
Nested classes/interfaces inherited from class io.reactivex.Scheduler
Scheduler.Worker
-
-
Field Summary
Fields Modifier and Type Field Description private static SwingScheduler
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
SwingScheduler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Scheduler.Worker
createWorker()
static SwingScheduler
getInstance()
-
Methods inherited from class io.reactivex.Scheduler
clockDriftTolerance, now, scheduleDirect, scheduleDirect, schedulePeriodicallyDirect, shutdown, start, when
-
-
-
-
Field Detail
-
INSTANCE
private static final SwingScheduler INSTANCE
-
-
Method Detail
-
getInstance
public static SwingScheduler getInstance()
-
createWorker
public Scheduler.Worker createWorker()
- Specified by:
createWorker
in classScheduler
-
-