java.lang.Object
org.omnifaces.cdi.push.SseEvent
- All Implemented Interfaces:
Serializable
This SSE event will be fired by SseSessionManager when an SSE connection has been
@SseEvent.Opened, @SseEvent.Switched or @SseEvent.Closed.
An application scoped CDI bean can @Observes them.
For detailed usage instructions, see Sse javadoc.
- Since:
- 5.2
- Author:
- Bauke Scholtz
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceIndicates that a SSE channel has closed.static @interfaceIndicates that a SSE channel has opened.static @interfaceIndicates that a SSE user was switched. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the push channel name.<S extends Serializable>
SReturns the previous user identifier, if any.<S extends Serializable>
SgetUser()Returns the current user identifier, if any.inthashCode()toString()
-
Method Details
-
getChannel
Returns the push channel name.- Returns:
- The push channel name.
-
getUser
Returns the current user identifier, if any.- Type Parameters:
S- The generic type of the user identifier.- Returns:
- The current user identifier, if any.
- Throws:
ClassCastException- WhenSis of wrong type.
-
getPreviousUser
Returns the previous user identifier, if any.- Type Parameters:
S- The generic type of the user identifier.- Returns:
- The previous user identifier, if any.
- Throws:
ClassCastException- WhenSis of wrong type.
-
hashCode
public int hashCode() -
equals
-
toString
-