public class TerrainExecutorService
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable command) |
static TerrainExecutorService |
getInstance() |
static void |
setConstructor(java.util.concurrent.Callable<java.util.concurrent.ExecutorService> constructor)
Set a new constructor of executor service to provide other implementation.
|
<T> java.util.concurrent.Future<T> |
submit(java.util.concurrent.Callable<T> task) |
java.util.concurrent.Future<?> |
submit(java.lang.Runnable task) |
<T> java.util.concurrent.Future<T> |
submit(java.lang.Runnable task,
T result) |
public static void setConstructor(java.util.concurrent.Callable<java.util.concurrent.ExecutorService> constructor)
constructor
- the constructor.public static TerrainExecutorService getInstance()
public <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> task)
public <T> java.util.concurrent.Future<T> submit(java.lang.Runnable task, T result)
public java.util.concurrent.Future<?> submit(java.lang.Runnable task)
public void execute(java.lang.Runnable command)