public enum TimeoutType extends Enum<TimeoutType>
| 枚举常量和说明 |
|---|
CONNECT_TIMEOUT |
IDLE_TIMEOUT |
READ_TIMEOUT |
WRITE_TIMEOUT |
public static final TimeoutType CONNECT_TIMEOUT
public static final TimeoutType READ_TIMEOUT
public static final TimeoutType WRITE_TIMEOUT
public static final TimeoutType IDLE_TIMEOUT
public static TimeoutType[] values()
for (TimeoutType c : TimeoutType.values()) System.out.println(c);
public static TimeoutType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
toString 在类中 Enum<TimeoutType>Copyright © 2018. All rights reserved.