java.lang.Object
org.omnifaces.cdi.push.SocketChannelManager.ViewScope
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SocketChannelManager
@ViewScoped
public static class SocketChannelManager.ViewScope
extends Object
implements Serializable
This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by
<o:socket>.
Since OmniFaces 4.6 this class is public instead of protected so it can be externally registered
into environment-specific CDI bean management facility.
- Since:
- 2.3
- Author:
- Bauke Scholtz
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWhen current view scope is about to be destroyed, deregister all view scoped channels and explicitly close any open web sockets associated with it to avoid stale websockets.Returns the view scoped channels.
-
Constructor Details
-
ViewScope
public ViewScope()
-
-
Method Details
-
getChannels
Returns the view scoped channels.- Returns:
- The view scoped channels.
-
deregisterViewScope
When current view scope is about to be destroyed, deregister all view scoped channels and explicitly close any open web sockets associated with it to avoid stale websockets.
-