Package com.networknt.registry
Enum URLParamType
- java.lang.Object
-
- java.lang.Enum<URLParamType>
-
- com.networknt.registry.URLParamType
-
- All Implemented Interfaces:
Serializable
,Comparable<URLParamType>
public enum URLParamType extends Enum<URLParamType>
The URL parameters are extra information attached to URL which is the main object for service registry and discovery. This class defines all types of URL parameters that are supported in the framework.- Author:
- maijunsheng, Steve Hu
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanValue()
int
getIntValue()
long
getLongValue()
String
getName()
String
getValue()
static URLParamType
valueOf(String name)
Returns the enum constant of this type with the specified name.static URLParamType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
environment
public static final URLParamType environment
environment
-
version
public static final URLParamType version
version
-
requestTimeout
public static final URLParamType requestTimeout
request timeout
-
requestIdFromClient
public static final URLParamType requestIdFromClient
request id from http interface
-
connectTimeout
public static final URLParamType connectTimeout
connect timeout
-
minWorkerThread
public static final URLParamType minWorkerThread
service min worker threads
-
maxWorkerThread
public static final URLParamType maxWorkerThread
service max worker threads
-
minClientConnection
public static final URLParamType minClientConnection
pool min conn number
-
maxClientConnection
public static final URLParamType maxClientConnection
pool max conn number
-
maxContentLength
public static final URLParamType maxContentLength
pool max conn number
-
maxServerConnection
public static final URLParamType maxServerConnection
max server conn (all clients conn)
-
poolLifo
public static final URLParamType poolLifo
pool conn manger strategy
-
lazyInit
public static final URLParamType lazyInit
-
shareChannel
public static final URLParamType shareChannel
multi referer share the same channel
-
serialize
public static final URLParamType serialize
serialize
-
codec
public static final URLParamType codec
codec
-
endpointFactory
public static final URLParamType endpointFactory
endpointFactory
-
heartbeatFactory
public static final URLParamType heartbeatFactory
heartbeatFactory
-
switcherService
public static final URLParamType switcherService
switcherService
-
group
public static final URLParamType group
-
clientGroup
public static final URLParamType clientGroup
-
accessLog
public static final URLParamType accessLog
-
actives
public static final URLParamType actives
-
refreshTimestamp
public static final URLParamType refreshTimestamp
-
nodeType
public static final URLParamType nodeType
-
export
public static final URLParamType export
-
embed
public static final URLParamType embed
-
registryRetryPeriod
public static final URLParamType registryRetryPeriod
-
cluster
public static final URLParamType cluster
-
loadbalance
public static final URLParamType loadbalance
-
haStrategy
public static final URLParamType haStrategy
-
protocol
public static final URLParamType protocol
-
path
public static final URLParamType path
-
host
public static final URLParamType host
-
port
public static final URLParamType port
-
iothreads
public static final URLParamType iothreads
-
workerQueueSize
public static final URLParamType workerQueueSize
-
acceptConnections
public static final URLParamType acceptConnections
-
filter
public static final URLParamType filter
-
application
public static final URLParamType application
-
module
public static final URLParamType module
-
retries
public static final URLParamType retries
-
async
public static final URLParamType async
-
mock
public static final URLParamType mock
-
mean
public static final URLParamType mean
-
p90
public static final URLParamType p90
-
p99
public static final URLParamType p99
-
p999
public static final URLParamType p999
-
errorRate
public static final URLParamType errorRate
-
check
public static final URLParamType check
-
directUrl
public static final URLParamType directUrl
-
registrySessionTimeout
public static final URLParamType registrySessionTimeout
-
register
public static final URLParamType register
-
subscribe
public static final URLParamType subscribe
-
throwException
public static final URLParamType throwException
-
localServiceAddress
public static final URLParamType localServiceAddress
-
weights
public static final URLParamType weights
-
-
Method Detail
-
values
public static URLParamType[] 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 (URLParamType c : URLParamType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static URLParamType 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
-
getName
public String getName()
-
getValue
public String getValue()
-
getIntValue
public int getIntValue()
-
getLongValue
public long getLongValue()
-
getBooleanValue
public boolean getBooleanValue()
-
-