Package jmri.jmrit.audio
Interface AudioThread
-
- All Superinterfaces:
java.lang.Runnable
- All Known Implementing Classes:
AbstractAudioListener.AudioListenerMoveThread
,AbstractAudioSource.AudioSourceFadeThread
,AbstractAudioSource.AudioSourceMoveThread
,AbstractAudioThread
,AudioCommandThread
public interface AudioThread extends java.lang.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
die()
Method used to tell the thread that it should shutdownboolean
isThreadAlive()
Checks if the thread is still alive (or in the process of shutting down)
-
-
-
Field Detail
-
GET
static final boolean GET
Used to return value from synchronised boolean methods- See Also:
- Constant Field Values
-
SET
static final boolean SET
Used to set value in synchronised boolean methods- See Also:
- Constant Field Values
-
NA
static final boolean NA
Used as parameter when returning value from synchronised boolean methods- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-