Package org.apache.tomcat.websocket
Class AsyncChannelGroupUtil
- java.lang.Object
-
- org.apache.tomcat.websocket.AsyncChannelGroupUtil
-
public class AsyncChannelGroupUtil extends java.lang.ObjectThis is a utility class that enables multipleWsWebSocketContainerinstances to share a singleAsynchronousChannelGroupwhile ensuring that the group is destroyed when no longer required.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.channels.AsynchronousChannelGroupregister()Registers a user of the sharedAsynchronousChannelGroup, creating it if necessary.static voidunregister()Unregisters a user of the sharedAsynchronousChannelGroup, shutting it down if no users remain.
-
-
-
Method Detail
-
register
public static java.nio.channels.AsynchronousChannelGroup 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.
-
-