public class GrizzlyClientSocket extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROXY_URI
Can be used as client-side user property to set proxy.
|
static String |
SELECTOR_THREAD_POOL_CONFIG
Client-side property to set custom selector
ThreadPoolConfig. |
static String |
WORKER_THREAD_POOL_CONFIG
Client-side property to set custom worker
ThreadPoolConfig. |
public static final String PROXY_URI
String and represent proxy URI. Protocol part is currently ignored
but must be present (URI.URI(String) is used for parsing).
client.getProperties().put(GrizzlyClientSocket.PROXY_URI, "http://my.proxy.com:80");
client.connectToServer(...);
EndpointConfig.getUserProperties(),
Constant Field Valuespublic static final String WORKER_THREAD_POOL_CONFIG
ThreadPoolConfig.
Value is expected to be instance of ThreadPoolConfig, can be null (it won't be used).public static final String SELECTOR_THREAD_POOL_CONFIG
ThreadPoolConfig.
Value is expected to be instance of ThreadPoolConfig, can be null (it won't be used).public void connect()
throws IOException,
javax.websocket.DeploymentException
URI.IOExceptionjavax.websocket.DeploymentExceptionCopyright © 2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.