Interface Pausable

  • All Known Implementing Classes:
    VideoFileSource

    public interface Pausable
    An interface for pausable execution units.
    • Method Detail

      • pausedProperty

        Observable<java.lang.Boolean> pausedProperty()
        Gets a property describing the current state of the pausable.
      • isPaused

        default boolean isPaused()
        Checks if execution is currently paused.
      • pause

        default void pause()
        Pauses execution. NOP if already paused.
      • resume

        default void resume()
        Resumes execution. NOP if not paused.
      • setPaused

        default void setPaused​(boolean paused)
        Sets whether this is paused or not.
        Parameters:
        paused - true if execution should be paused, false if execution should run