Tabnine Logo
Destination.stop
Code IndexAdd Tabnine to your IDE (free)

How to use
stop
method
in
org.apache.activemq.broker.region.Destination

Best Java code snippets using org.apache.activemq.broker.region.Destination.stop (Showing top 20 results out of 315)

origin: apache/activemq

@Override
public void stop() throws Exception {
  next.stop();
}
origin: apache/activemq

private void doDispose(Destination dest) {
  ConnectionContext context = new ConnectionContext();
  try {
    dest.dispose(context);
    dest.stop();
  } catch (Exception e) {
    LOG.warn("Failed to dispose of {}", dest, e);
  }
}
origin: apache/activemq

protected void dispose(ConnectionContext context, Destination dest) throws Exception {
  dest.dispose(context);
  dest.stop();
  destinationFactory.removeDestination(dest);
}
origin: apache/activemq

protected final synchronized void dispose(ConnectionContext context,
    Destination dest) throws Exception {
  // add to cache
  if (this.doCacheTempDestinations) {
    cachedDestinations.put(new CachedDestination(dest
        .getActiveMQDestination()), dest);
  }else {
    try {
      dest.dispose(context);
      dest.stop();
    } catch (Exception e) {
      LOG.warn("Failed to dispose of {}", dest, e);
    }
  }
}
origin: apache/activemq

@Override
public void stop() throws Exception {
  started = false;
  destinationsLock.readLock().lock();
  try{
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.stop();
    }
  } finally {
    destinationsLock.readLock().unlock();
  }
  destinationsLock.writeLock().lock();
  try {
    destinations.clear();
    regionStatistics.getAdvisoryDestinations().reset();
    regionStatistics.getDestinations().reset();
    regionStatistics.getAllDestinations().reset();
  } finally {
    destinationsLock.writeLock().unlock();
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void stop() throws Exception {
  next.stop();
}
origin: org.apache.activemq/activemq-osgi

@Override
public void stop() throws Exception {
  next.stop();
}
origin: org.apache.activemq/activemq-all

@Override
public void stop() throws Exception {
  next.stop();
}
origin: pierre/meteo

public void stop() throws Exception {
  next.stop();
}
origin: pierre/meteo

public void stop() throws Exception {
  started = false;
  synchronized (destinationsMutex) {
    for (Iterator<Destination> i = destinations.values().iterator(); i.hasNext();) {
      Destination dest = i.next();
      dest.stop();
    }
  }
  destinations.clear();
}
origin: org.apache.activemq/activemq-broker

private void doDispose(Destination dest) {
  ConnectionContext context = new ConnectionContext();
  try {
    dest.dispose(context);
    dest.stop();
  } catch (Exception e) {
    LOG.warn("Failed to dispose of {}", dest, e);
  }
}
origin: org.apache.activemq/activemq-all

private void doDispose(Destination dest) {
  ConnectionContext context = new ConnectionContext();
  try {
    dest.dispose(context);
    dest.stop();
  } catch (Exception e) {
    LOG.warn("Failed to dispose of {}", dest, e);
  }
}
origin: org.apache.activemq/activemq-osgi

private void doDispose(Destination dest) {
  ConnectionContext context = new ConnectionContext();
  try {
    dest.dispose(context);
    dest.stop();
  } catch (Exception e) {
    LOG.warn("Failed to dispose of {}", dest, e);
  }
}
origin: pierre/meteo

private void doDispose(Destination dest) {
  ConnectionContext context = new ConnectionContext();
  try {
    dest.dispose(context);
    dest.stop();
  } catch (Exception e) {
    LOG.warn("Failed to dispose of " + dest, e);
  }
}
origin: org.apache.activemq/activemq-broker

protected void dispose(ConnectionContext context, Destination dest) throws Exception {
  dest.dispose(context);
  dest.stop();
  destinationFactory.removeDestination(dest);
}
origin: org.apache.activemq/activemq-osgi

protected void dispose(ConnectionContext context, Destination dest) throws Exception {
  dest.dispose(context);
  dest.stop();
  destinationFactory.removeDestination(dest);
}
origin: org.apache.activemq/activemq-all

protected void dispose(ConnectionContext context, Destination dest) throws Exception {
  dest.dispose(context);
  dest.stop();
  destinationFactory.removeDestination(dest);
}
origin: pierre/meteo

protected void dispose(ConnectionContext context, Destination dest) throws Exception {
  dest.dispose(context);
  dest.stop();
  destinationFactory.removeDestination(dest);
}
origin: org.apache.activemq/activemq-broker

protected final synchronized void dispose(ConnectionContext context,
    Destination dest) throws Exception {
  // add to cache
  if (this.doCacheTempDestinations) {
    cachedDestinations.put(new CachedDestination(dest
        .getActiveMQDestination()), dest);
  }else {
    try {
      dest.dispose(context);
      dest.stop();
    } catch (Exception e) {
      LOG.warn("Failed to dispose of {}", dest, e);
    }
  }
}
origin: org.apache.activemq/activemq-all

protected final synchronized void dispose(ConnectionContext context,
    Destination dest) throws Exception {
  // add to cache
  if (this.doCacheTempDestinations) {
    cachedDestinations.put(new CachedDestination(dest
        .getActiveMQDestination()), dest);
  }else {
    try {
      dest.dispose(context);
      dest.stop();
    } catch (Exception e) {
      LOG.warn("Failed to dispose of {}", dest, e);
    }
  }
}
org.apache.activemq.broker.regionDestinationstop

Popular methods of Destination

  • getConsumers
  • getDestinationStatistics
  • getName
  • getActiveMQDestination
  • browse
  • removeSubscription
  • acknowledge
  • addProducer
  • addSubscription
  • dispose
  • fastProducer
    Called to notify a producer is too fast
  • gc
  • fastProducer,
  • gc,
  • getBlockedProducerWarningInterval,
  • getCursorMemoryHighWaterMark,
  • getDeadLetterStrategy,
  • getMaxAuditDepth,
  • getMaxBrowsePageSize,
  • getMaxPageSize,
  • getMaxProducersToAudit,
  • getMemoryUsage

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • CodeWhisperer alternatives
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