public class SoundTaskExecutor
extends java.lang.Object
Constructor and Description |
---|
SoundTaskExecutor()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(@NotNull java.lang.Runnable task)
Schedules a task for execution.
|
void |
executeAndWait(@NotNull java.lang.Runnable task)
Schedules a task for execution.
|
void |
start()
Activates this instance.
|
public void start()
public void execute(@NotNull @NotNull java.lang.Runnable task)
task
- the taskpublic void executeAndWait(@NotNull @NotNull java.lang.Runnable task) throws java.lang.InterruptedException
task
- the taskjava.lang.InterruptedException
- if the current thread was interrupted while
waiting for the shutdown