public enum ThreadType extends java.lang.Enum<ThreadType>
desc :
author : xuexiang
time : 2018/4/23 上午1:02
| Enum Constant and Description |
|---|
Disk
磁盘读写线程池(本质上是单线程池)
|
Fixed
多线程池
|
Network
网络请求线程池(本质上是多线程池)
|
Single
单线程池
|
| Modifier and Type | Method and Description |
|---|---|
static ThreadType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadType Single
public static final ThreadType Fixed
public static final ThreadType Disk
public static final ThreadType Network
public static ThreadType[] values()
for (ThreadType c : ThreadType.values()) System.out.println(c);
public static ThreadType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null