public final class WebsocketApplicationSessionHolder extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | INIT_PARAM_WEBSOCKET_MAX_CONNECTIONS | 
| static Integer | INIT_PARAM_WEBSOCKET_MAX_CONNECTIONS_DEFAULT | 
| Constructor and Description | 
|---|
| WebsocketApplicationSessionHolder() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | addOrUpdateSession(String channelToken,
                  jakarta.websocket.Session session) | 
| static void | clearWebsocketSessionLRUCache()Removes the cached MetadataTarget instances in order to prevent a memory leak. | 
| static Queue<String> | getRestoredQueue() | 
| static ConcurrentLRUCache<String,Reference<jakarta.websocket.Session>> | getWebsocketSessionLRUCache() | 
| static void | initWebsocketSessionLRUCache(ExternalContext context) | 
| static boolean | removeSession(String channelToken)Remove the Session associated to the channelToken. | 
| protected static Set<Future<Void>> | send(String channelToken,
    Object message) | 
public static final String INIT_PARAM_WEBSOCKET_MAX_CONNECTIONS
public static final Integer INIT_PARAM_WEBSOCKET_MAX_CONNECTIONS_DEFAULT
public static ConcurrentLRUCache<String,Reference<jakarta.websocket.Session>> getWebsocketSessionLRUCache()
public static void initWebsocketSessionLRUCache(ExternalContext context)
context - public static void clearWebsocketSessionLRUCache()
public static boolean addOrUpdateSession(String channelToken, jakarta.websocket.Session session)
public static boolean removeSession(String channelToken)
channelToken - Copyright © 2022 The Apache Software Foundation. All rights reserved.