Class AsyncChannelGroupUtil
java.lang.Object
org.apache.tomcat.websocket.AsyncChannelGroupUtil
This is a utility class that enables multiple
WsWebSocketContainer instances to share a single
AsynchronousChannelGroup while ensuring that the group is destroyed when no longer required.-
Method Summary
Modifier and TypeMethodDescriptionstatic AsynchronousChannelGroupregister()Registers a user of the sharedAsynchronousChannelGroup, creating it if necessary.static voidUnregisters a user of the sharedAsynchronousChannelGroup, shutting it down if no users remain.
-
Method Details
-
register
Registers a user of the sharedAsynchronousChannelGroup, creating it if necessary.- Returns:
- the shared
AsynchronousChannelGroup
-
unregister
public static void unregister()Unregisters a user of the sharedAsynchronousChannelGroup, shutting it down if no users remain.
-