Class ConnectionString
java.lang.Object
one.nio.net.ConnectionString
Available HTTP params for configure directly in ConnectionString url:
- keepalive
true - bufferSize
8000 - timeout
3000 - readTimeout
3000 - connectTimeout
1000 - fifo
false - jmx
false - clientMinPoolSize
0 - clientMaxPoolSize
5000 - schedulingPolicy
OTHER - tos
0 - recvBuf
0 - sendBuf
0 - backlog
128 - selectors
0 - minWorkers
0 - maxWorkers
0 - queueTime
0 - closeSessions
false - threadPriority
Thread.NORM_PRIORITY
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionString(String connectionString) ConnectionString(String connectionString, boolean expand) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringgetAddressFromProperty(String interfaceName) booleangetBooleanParam(String key, boolean defaultValue) getHost()static StringgetInterfaceAddress(String interfaceName) intgetIntParam(String key, int defaultValue) longgetLongParam(String key, long defaultValue) getPath()intgetPort()static StringgetRoutingAddress(String targetIP) getStringParam(String key) getStringParam(String key, String defaultValue) parseParameters(String parameters) toString()
-
Field Details
-
INTERFACE_PATTERN
-
WELL_KNOWN_PORTS
-
protocol
-
host
-
port
protected int port -
path
-
params
-
-
Constructor Details
-
ConnectionString
protected ConnectionString() -
ConnectionString
-
ConnectionString
-
-
Method Details
-
getProtocol
-
getHost
-
getPort
public int getPort() -
getPath
-
getParams
-
getStringParam
-
getStringParam
-
getIntParam
-
getLongParam
-
getBooleanParam
-
expand
-
getAddressFromProperty
-
getRoutingAddress
-
getInterfaceAddress
-
parseParameters
-
toString
-