@Environment(value=CLIENT) public class SoundExecutor extends ThreadExecutor<Runnable>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
stopped |
private Thread |
thread |
| Constructor and Description |
|---|
SoundExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canExecute(Runnable task) |
protected Runnable |
createTask(Runnable runnable) |
private Thread |
createThread() |
protected Thread |
getThread() |
void |
restart() |
private void |
waitForStop() |
protected void |
waitForTasks() |
cancelTasks, execute, executeTask, getName, getTaskCount, isOnThread, runTask, runTasks, runTasks, send, shouldExecuteAsync, submit, submit, submitAndJoinclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitask, close, create, method_27918private Thread thread
private volatile boolean stopped
private Thread createThread()
protected Runnable createTask(Runnable runnable)
createTask in class ThreadExecutor<Runnable>protected boolean canExecute(Runnable task)
canExecute in class ThreadExecutor<Runnable>protected Thread getThread()
getThread in class ThreadExecutor<Runnable>private void waitForStop()
protected void waitForTasks()
waitForTasks in class ThreadExecutor<Runnable>public void restart()