Class TerrainExecutorService

java.lang.Object
com.jme3.terrain.executor.TerrainExecutorService

public class TerrainExecutorService extends Object
The class to provide single executor service to run background tasks of terrain stuff.
  • Method Details

    • setConstructor

      public static void setConstructor(Callable<ExecutorService> constructor)
      Set a new constructor of executor service to provide other implementation.
      Parameters:
      constructor - the constructor.
    • getInstance

      public static TerrainExecutorService getInstance()
    • submit

      public <T> Future<T> submit(Callable<T> task)
    • submit

      public <T> Future<T> submit(Runnable task, T result)
    • submit

      public Future<?> submit(Runnable task)
    • execute

      public void execute(Runnable command)