Class ThreadingManager

java.lang.Object
com.jme3.asset.ThreadingManager

public class ThreadingManager extends Object
ThreadingManager manages the threads used to load content within the Content Manager system. A pool of threads and a task queue is used to load resource data and perform I/O while the application's render thread is active.
  • Field Details

    • executor

      protected final ExecutorService executor
    • owner

      protected final AssetManager owner
    • nextThreadId

      protected int nextThreadId
  • Constructor Details

    • ThreadingManager

      public ThreadingManager(AssetManager owner)
  • Method Details

    • loadAsset

      public <T> Future<T> loadAsset(AssetKey<T> assetKey)
    • isLoadingThread

      public static boolean isLoadingThread()