-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.java
More file actions
37 lines (25 loc) · 947 Bytes
/
Copy pathConstants.java
File metadata and controls
37 lines (25 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.example.kongalong.ximalaya_mvp.imageLoad;
/**
* Created by kongalong on 2016/11/8.
*/
public class Constants {
//disk缓存文件夹名称
public static final String DISK_CACHE_FILE_NAME = "bitmapCache";
//disk缓存大小
public static final int DISK_CACHE_SIZE = 1024*1024*50;
public static final int DISK_CACHE_INDEX = 0;
//请求超时
public static final int TIME_OUT = 5000;
//字节流缓存大小
public static final int BYTE_BUFFER_SIZE = 1024*8;
//Message的what值
public static final int MESSAGE_ONE = 1;
//cup个数
public static final int CPU_COUNT = Runtime.getRuntime().availableProcessors();
//核心线程池大小
public static final int CORE_POOL_SIZE = CPU_COUNT + 1;
//最大线程池大小
public static final int MAX_POOL_SIZE = CPU_COUNT * 2 + 1;
//线程能活多久
public static final long THREAD_KEEP_ALIVE = 10L;
}