public final class WebsocketApplicationSessionHolder extends Object
Constructor and Description |
---|
WebsocketApplicationSessionHolder() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addOrUpdateSession(String channelToken,
javax.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<javax.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 ConcurrentLRUCache<String,Reference<javax.websocket.Session>> getWebsocketSessionLRUCache()
public static void initWebsocketSessionLRUCache(ExternalContext context)
public static void clearWebsocketSessionLRUCache()
public static boolean addOrUpdateSession(String channelToken, javax.websocket.Session session)
public static boolean removeSession(String channelToken)
channelToken
- Copyright © 2021 The Apache Software Foundation. All rights reserved.