ContainerProvider implementation.
Created by a java. call in the
jakarta. call.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected WebSocketContainer | getContainer()
Implements abstract jakarta. Used by |
| public static WebSocketContainer | getContainer(HttpClient
a pre-configured httpClient)HttpClient to be used by the implementation.Get a new instance of a client |
| public static void |
| JakartaWebSocketClientContainerProvider | back to summary |
|---|---|
| public JakartaWebSocketClientContainerProvider() | |
| getContainer | back to summary |
|---|---|
| protected WebSocketContainer getContainer() Implements abstract jakarta. Used by NOTE: A WebSocket Client Container is a heavyweight object. It is dangerous to repeatedly request a new container, or to manage many containers. The existing jakarta.websocket API has no lifecycle for a ClientContainer, once started they exist for the duration of the JVM with no ability to stop them. See/Comment on jakarta.websocket Issue #212 if this is a big concern for you.
| |
| getContainer | back to summary |
|---|---|
| public static WebSocketContainer getContainer(HttpClient httpClient) Get a new instance of a client
| |
| stop | back to summary |
|---|---|
| public static void stop(WebSocketContainer container) throws Exception | |