JavaFX周期性后台任务
Task
Service
javafx.concurrent
Thread#sleep()
Executor
Executors
Executors.newSingleThreadScheduledExecutor()
)
Runnable
javafx.concurrent.Service
service.restart
service.getState()
Executors.newSingleThreadScheduledExecutor()
Runnable
Runnable
Runnable
Platform.runLater(new Runnable() { //here i can modify GUI properties}
Task
Service
呼唤远方
相关分类