public enum AutoLoadQueueSortType extends Enum<AutoLoadQueueSortType>
| 枚举常量和说明 |
|---|
NONE
默认顺序
|
OLDEST_FIRST
越接近过期时间,越耗时的排在最前
|
REQUEST_TIMES_DESC
根据请求次数,倒序排序,请求次数越多,说明使用频率越高,造成并发的可能越大。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AutoLoadQueueSortType |
getById(Integer id) |
Comparator<AutoLoadTO> |
getComparator() |
Integer |
getId() |
static AutoLoadQueueSortType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AutoLoadQueueSortType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AutoLoadQueueSortType NONE
public static final AutoLoadQueueSortType OLDEST_FIRST
public static final AutoLoadQueueSortType REQUEST_TIMES_DESC
public static AutoLoadQueueSortType[] values()
for (AutoLoadQueueSortType c : AutoLoadQueueSortType.values()) System.out.println(c);
public static AutoLoadQueueSortType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static AutoLoadQueueSortType getById(Integer id)
public Integer getId()
public Comparator<AutoLoadTO> getComparator()
Copyright © 2020. All rights reserved.