Created
July 10, 2016 16:43
-
-
Save amitshekhariitbhu/005fef58cfe6a169b312eef8ce95c96c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DefaultExecutorSupplier{ | |
private final PriorityThreadPoolExecutor mForBackgroundTasks; | |
private DefaultExecutorSupplier() { | |
mForBackgroundTasks = new PriorityThreadPoolExecutor( | |
NUMBER_OF_CORES * 2, | |
NUMBER_OF_CORES * 2, | |
60L, | |
TimeUnit.SECONDS, | |
backgroundPriorityThreadFactory | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment