Class ThreadPools
- java.lang.Object
-
- com.google.ar.sceneform.rendering.ThreadPools
-
public class ThreadPools extends java.lang.ObjectProvides access to defaultExecutors to be used
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ExecutorgetMainExecutor()Executorfor anything that that touchesRendererstatestatic java.util.concurrent.ExecutorgetThreadPoolExecutor()Default backgroundExecutorfor async operations including file reading.static voidsetMainExecutor(java.util.concurrent.Executor executor)static voidsetThreadPoolExecutor(java.util.concurrent.Executor executor)Sets the default backgroundExecutor.
-
-
-
Method Detail
-
getMainExecutor
public static java.util.concurrent.Executor getMainExecutor()
Executorfor anything that that touchesRendererstate
-
setMainExecutor
public static void setMainExecutor(java.util.concurrent.Executor executor)
- Parameters:
executor- provides access to the main thread.
-
getThreadPoolExecutor
public static java.util.concurrent.Executor getThreadPoolExecutor()
Default backgroundExecutorfor async operations including file reading.
-
setThreadPoolExecutor
public static void setThreadPoolExecutor(java.util.concurrent.Executor executor)
Sets the default backgroundExecutor.Tasks may be long running. This should not include the main thread
-
-