Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

An interface to Java code that is to be run at a future time, on a thread other than the JavaFX event dispatch thread. JavaFX code should not be run from objects that support this interface.

See Also:
JavaTaskBase

Profile: common

Inherited Variables

Method Summary

public void run() throws java.lang.Exception

This method is called from a thread other than the JavaFX event dispatch thread.

This method is called from a thread other than the JavaFX event dispatch thread.

It is expected to call Java code provided by the programmer. No JavaFX code should be directly called from this method. In order to allow this task to be stopped by JavaTaskBase.stop(), code called by this method must abide by the rules of Thread.interrupt() with respect to its executing thread receiving a java.lang.InterruptedException. Failure to make the RunnableFuture.run() method interruptible could lead to unstoppable JavaTaskBases that take up CPU and memory resources. Some relatively short JavaTaskBases, expected to last a maximum of serveral seconds, may not need to be interruptible.

Throws
java.lang.Exception
 

Inherited Functions