public class CatalystQueueConfiguration
extends java.lang.Object
MessageQueueThreads must be used to run the various contexts of
execution within catalyst (Main UI thread, native modules, and JS). Some of these queues *may* be
the same but should be coded against as if they are different.
UI Queue Thread: The standard Android main UI thread and Looper. Not configurable.
Native Modules Queue Thread: The thread and Looper that native modules are invoked on.
JS Queue Thread: The thread and Looper that JS is executed on.| Modifier and Type | Method and Description |
|---|---|
static CatalystQueueConfiguration |
create(CatalystQueueConfigurationSpec spec,
QueueThreadExceptionHandler exceptionHandler) |
void |
destroy()
Should be called when the corresponding
CatalystInstance
is destroyed so that we shut down the proper queue threads. |
MessageQueueThread |
getJSQueueThread() |
MessageQueueThread |
getNativeModulesQueueThread() |
MessageQueueThread |
getUIQueueThread() |
public MessageQueueThread getUIQueueThread()
public MessageQueueThread getNativeModulesQueueThread()
public MessageQueueThread getJSQueueThread()
public void destroy()
CatalystInstance
is destroyed so that we shut down the proper queue threads.public static CatalystQueueConfiguration create(CatalystQueueConfigurationSpec spec, QueueThreadExceptionHandler exceptionHandler)