Builder

class Builder

A builder for GlideExecutors.

Functions

Link copied to clipboard
open fun build(): GlideExecutor
Builds a new GlideExecutor with any previously specified options.
Link copied to clipboard
open fun setName(name: String): GlideExecutor.Builder
Sets the prefix to use for each thread name created by any GlideExecutors built by this Builder.
Link copied to clipboard
open fun setThreadCount(threadCount: Int): GlideExecutor.Builder
Sets the maximum number of threads to use.
Link copied to clipboard
open fun setThreadTimeoutMillis(threadTimeoutMillis: Long): GlideExecutor.Builder
Allows both core and non-core threads in the executor to be terminated if no tasks arrive for at least the given timeout milliseconds.
Link copied to clipboard
Sets the UncaughtThrowableStrategy to use for unexpected exceptions thrown by tasks on GlideExecutors built by this Builder.

Properties

Link copied to clipboard
val NO_THREAD_TIMEOUT: Long
Prevents core and non-core threads from timing out ever if provided to setThreadTimeoutMillis.