java.lang.Object
org.omnifaces.cdi.push.SseChannelManager.ViewScope
- All Implemented Interfaces:
Serializable
- Enclosing class:
SseChannelManager
This helps the SSE channel manager to hold view scoped SSE channel identifiers registered by
<o:sse>.
Since this class is public it can be externally registered into environment-specific CDI bean
management facility.
- Since:
- 5.2
- 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 complete any open SSE connections associated with it to avoid stale connections.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 complete any open SSE connections associated with it to avoid stale connections.
-