Interface AudioThread

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractAudioListener.AudioListenerMoveThread, AbstractAudioSource.AudioSourceFadeThread, AbstractAudioSource.AudioSourceMoveThread, AbstractAudioThread, AudioCommandThread

public interface AudioThread extends Runnable
Interface defining public methods and variables used in AudioThread classes
This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Used to return value from synchronised boolean methods
    static final boolean
    Used as parameter when returning value from synchronised boolean methods
    static final boolean
    Used to set value in synchronised boolean methods
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    die()
    Method used to tell the thread that it should shutdown
    boolean
    Checks if the thread is still alive (or in the process of shutting down)

    Methods inherited from interface java.lang.Runnable

    run
  • Field Details

    • GET

      static final boolean GET
      Used to return value from synchronised boolean methods
      See Also:
    • SET

      static final boolean SET
      Used to set value in synchronised boolean methods
      See Also:
    • NA

      static final boolean NA
      Used as parameter when returning value from synchronised boolean methods
      See Also:
  • Method Details

    • isThreadAlive

      boolean isThreadAlive()
      Checks if the thread is still alive (or in the process of shutting down)

      Once cleanup has finished, this should return False

      Returns:
      true, while thread is alive; false, when all cleanup has finished
    • die

      void die()
      Method used to tell the thread that it should shutdown