Package network.oxalis.commons.http
Enum HttpConf
- java.lang.Object
-
- java.lang.Enum<HttpConf>
-
- network.oxalis.commons.http.HttpConf
-
- All Implemented Interfaces:
Serializable,Comparable<HttpConf>
@Title("HTTP") public enum HttpConf extends Enum<HttpConf>
- Since:
- 4.0.0
- Author:
- erlend
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POOL_MAX_ROUTEPOOL_TIME_TO_LIVEPOOL_TOTALPOOL_VALIDATE_AFTER_INACTIVITYTIMEOUT_CONNECTTIMEOUT_READTIMEOUT_SOCKET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpConfvalueOf(String name)Returns the enum constant of this type with the specified name.static HttpConf[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POOL_TOTAL
@Path("oxalis.http.pool.total") @DefaultValue("20") public static final HttpConf POOL_TOTAL
-
POOL_MAX_ROUTE
@Path("oxalis.http.pool.max_route") @DefaultValue("2") public static final HttpConf POOL_MAX_ROUTE
-
POOL_VALIDATE_AFTER_INACTIVITY
@Path("oxalis.http.pool.validate_after_inactivity") @DefaultValue("1000") public static final HttpConf POOL_VALIDATE_AFTER_INACTIVITY
-
POOL_TIME_TO_LIVE
@Path("oxalis.http.pool.time_to_live") @DefaultValue("30") public static final HttpConf POOL_TIME_TO_LIVE
-
TIMEOUT_CONNECT
@Path("oxalis.http.timeout.connect") @DefaultValue("0") public static final HttpConf TIMEOUT_CONNECT
-
TIMEOUT_READ
@Path("oxalis.http.timeout.read") @DefaultValue("0") public static final HttpConf TIMEOUT_READ
-
TIMEOUT_SOCKET
@Path("oxalis.http.timeout.socket") @DefaultValue("0") public static final HttpConf TIMEOUT_SOCKET
-
-
Method Detail
-
values
public static HttpConf[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpConf c : HttpConf.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpConf valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-