|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.jersey.server.Broadcaster<OutboundEvent>
org.glassfish.jersey.media.sse.SseBroadcaster
public class SseBroadcaster
Used for broadcasting SSE to multiple EventChannel instances.
| Constructor Summary | |
|---|---|
|
SseBroadcaster()
Creates a new instance. |
protected |
SseBroadcaster(java.lang.Class<? extends SseBroadcaster> subclass)
Can be used by subclasses to override the default functionality of adding self to the set of listeners. |
| Method Summary | |
|---|---|
void |
add(EventChannel eventChannel)
Register EventChannel to current SseBroadcaster instance. |
| Methods inherited from class org.glassfish.jersey.server.Broadcaster |
|---|
add, addBroadcasterListener, broadcast, closeAll, onClose, onException, remove, removeBroadcasterListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SseBroadcaster()
Broadcaster.onClose(ChunkedResponse) and Broadcaster.onException(ChunkedResponse, Exception) methods, so it adds
the newly created instance as the listener. To avoid this, subclasses may call SseBroadcaster(Class)
passing their class as an argument.
protected SseBroadcaster(java.lang.Class<? extends SseBroadcaster> subclass)
listeners.
If creating a direct instance of a subclass passed in the parameter,
the broadcaster will not register itself as a listener.
subclass - subclass of SseBroadcaster that should not be registered as a listener - if creating a direct instance
of this subclass, this constructor will not register the new instance as a listener.SseBroadcaster()| Method Detail |
|---|
public void add(EventChannel eventChannel)
EventChannel to current SseBroadcaster instance.
eventChannel - EventChannel to register.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||