Class ThreadPools
- java.lang.Object
-
- com.google.ar.sceneform.rendering.ThreadPools
-
public class ThreadPools extends java.lang.Object
Provides access to defaultExecutor
s to be used
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.Executor
getMainExecutor()
Executor
for anything that that touchesRenderer
statestatic java.util.concurrent.Executor
getThreadPoolExecutor()
Default backgroundExecutor
for async operations including file reading.static void
setMainExecutor(java.util.concurrent.Executor executor)
static void
setThreadPoolExecutor(java.util.concurrent.Executor executor)
Sets the default backgroundExecutor
.
-
-
-
Method Detail
-
getMainExecutor
public static java.util.concurrent.Executor getMainExecutor()
Executor
for anything that that touchesRenderer
state
-
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 backgroundExecutor
for 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
-
-