Tabnine Logo
SseBroadcaster.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
org.glassfish.jersey.media.sse.SseBroadcaster

Best Java code snippets using org.glassfish.jersey.media.sse.SseBroadcaster.remove (Showing top 4 results out of 315)

origin: org.eclipse.smarthome.io/org.eclipse.smarthome.io.rest.sitemap

protected void deactivate() {
  broadcaster.remove(this);
  broadcaster = null;
}
origin: openhab/openhab-core

@Override
public void onRelease(String subscriptionId) {
  logger.debug("SSE connection for subscription {} has been released.", subscriptionId);
  EventOutput eventOutput = eventOutputs.remove(subscriptionId);
  if (eventOutput != null) {
    broadcaster.remove(eventOutput);
  }
}
origin: openhab/openhab-core

@Deactivate
protected void deactivate() {
  if (cleanSubscriptionsJob != null && !cleanSubscriptionsJob.isCancelled()) {
    logger.debug("Cancel clean SSE subscriptions job");
    cleanSubscriptionsJob.cancel(true);
    cleanSubscriptionsJob = null;
  }
  broadcaster.remove(this);
  broadcaster = null;
}
origin: openhab/openhab-core

@Override
public void onClose(ChunkedOutput<OutboundEvent> event) {
  if (event instanceof SitemapEventOutput) {
    SitemapEventOutput sitemapEvent = (SitemapEventOutput) event;
    logger.debug("SSE connection for subscription {} has been closed.", sitemapEvent.getSubscriptionId());
    subscriptions.removeSubscription(sitemapEvent.getSubscriptionId());
    EventOutput eventOutput = eventOutputs.remove(sitemapEvent.getSubscriptionId());
    if (eventOutput != null) {
      broadcaster.remove(eventOutput);
    }
  }
}
org.glassfish.jersey.media.sseSseBroadcasterremove

Popular methods of SseBroadcaster

  • add
  • broadcast
  • <init>
    Can be used by subclasses to override the default functionality of adding self to the set of org.gla
  • addListener
  • closeAll

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now