GlideExecutor
A prioritized ThreadPoolExecutor for running jobs in Glide.
Types
Link copied to clipboard
A builder for GlideExecutors.
Link copied to clipboard
A strategy for handling unexpected and uncaught Throwables thrown by futures run on the pool.
Functions
Link copied to clipboard
Link copied to clipboard
Determines the number of cores available on the device.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a new fixed thread pool that defaults to either one or two threads depending on the number of available cores to use when loading frames of animations.
Link copied to clipboard
Shortcut for calling build on newAnimationBuilder.
Content copied to clipboard
Link copied to clipboard
Returns a new Builder with the DEFAULT_DISK_CACHE_EXECUTOR_THREADS threads, DEFAULT_DISK_CACHE_EXECUTOR_NAME name and DEFAULT uncaught throwable strategy.
Link copied to clipboard
Shortcut for calling build on newDiskCacheBuilder.
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard
Returns a new Builder with the default thread count returned from calculateBestThreadCount, the DEFAULT_SOURCE_EXECUTOR_NAME thread name prefix, and the DEFAULT uncaught throwable strategy.
Link copied to clipboard
Shortcut for calling build on newSourceBuilder.
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard
Returns a new unlimited thread pool with zero core thread count to make sure no threads are created by default, KEEP_ALIVE_TIME_MS keep alive time, the DEFAULT_SOURCE_UNLIMITED_EXECUTOR_NAME thread name prefix, the DEFAULT uncaught throwable strategy, and the SynchronousQueue since using default unbounded blocking queue, for example, PriorityBlockingQueue effectively won't create more than
corePoolSize
threads.Link copied to clipboard