public class SseBroadcaster extends Broadcaster<OutboundEvent>
EventOutput
instances.Modifier | Constructor and Description |
---|---|
|
SseBroadcaster()
Creates a new instance.
|
protected |
SseBroadcaster(Class<? extends SseBroadcaster> subclass)
Can be used by subclasses to override the default functionality of adding self to the set of
listeners . |
public SseBroadcaster()
Broadcaster.onClose(org.glassfish.jersey.server.ChunkedOutput)
and Broadcaster.onException(org.glassfish.jersey.server.ChunkedOutput, 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(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()
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.