Tabnine Logo
BrokerInfo.decrementRefCount
Code IndexAdd Tabnine to your IDE (free)

How to use
decrementRefCount
method
in
org.apache.activemq.command.BrokerInfo

Best Java code snippets using org.apache.activemq.command.BrokerInfo.decrementRefCount (Showing top 5 results out of 315)

origin: apache/activemq

@Override
public synchronized void removeBroker(Connection connection, BrokerInfo info) {
  if (info != null) {
    BrokerInfo existing = brokerInfos.get(info.getBrokerId());
    if (existing != null && existing.decrementRefCount() == 0) {
      brokerInfos.remove(info.getBrokerId());
    }
    LOG.debug("{} removeBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size()});
    // When stopping don't send cluster updates since we are the one's tearing down
    // our own bridges.
    if (!brokerService.isStopping()) {
      removeBrokerInClusterUpdate(info);
    }
  }
}
origin: pierre/meteo

@Override
public synchronized void removeBroker(Connection connection, BrokerInfo info) {
  if (info != null) {
    BrokerInfo existing = brokerInfos.get(info.getBrokerId());
    if (existing != null && existing.decrementRefCount() == 0) {
      brokerInfos.remove(info.getBrokerId());
    }
    LOG.debug(getBrokerName() + " removeBroker:" + info.getBrokerName() + " brokerInfo size : " + brokerInfos.size());
    removeBrokerInClusterUpdate();
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public synchronized void removeBroker(Connection connection, BrokerInfo info) {
  if (info != null) {
    BrokerInfo existing = brokerInfos.get(info.getBrokerId());
    if (existing != null && existing.decrementRefCount() == 0) {
      brokerInfos.remove(info.getBrokerId());
    }
    LOG.debug("{} removeBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size()});
    // When stopping don't send cluster updates since we are the one's tearing down
    // our own bridges.
    if (!brokerService.isStopping()) {
      removeBrokerInClusterUpdate(info);
    }
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public synchronized void removeBroker(Connection connection, BrokerInfo info) {
  if (info != null) {
    BrokerInfo existing = brokerInfos.get(info.getBrokerId());
    if (existing != null && existing.decrementRefCount() == 0) {
      brokerInfos.remove(info.getBrokerId());
    }
    LOG.debug("{} removeBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size()});
    // When stopping don't send cluster updates since we are the one's tearing down
    // our own bridges.
    if (!brokerService.isStopping()) {
      removeBrokerInClusterUpdate(info);
    }
  }
}
origin: org.apache.activemq/activemq-all

@Override
public synchronized void removeBroker(Connection connection, BrokerInfo info) {
  if (info != null) {
    BrokerInfo existing = brokerInfos.get(info.getBrokerId());
    if (existing != null && existing.decrementRefCount() == 0) {
      brokerInfos.remove(info.getBrokerId());
    }
    LOG.debug("{} removeBroker: {} brokerInfo size: {}", new Object[]{ getBrokerName(), info.getBrokerName(), brokerInfos.size()});
    // When stopping don't send cluster updates since we are the one's tearing down
    // our own bridges.
    if (!brokerService.isStopping()) {
      removeBrokerInClusterUpdate(info);
    }
  }
}
org.apache.activemq.commandBrokerInfodecrementRefCount

Popular methods of BrokerInfo

  • getBrokerId
  • getBrokerName
  • <init>
  • getBrokerURL
  • setBrokerName
  • setBrokerURL
  • setBrokerId
  • setFaultTolerantConfiguration
  • setPeerBrokerInfos
  • getNetworkProperties
  • isDuplexConnection
  • isNetworkConnection
  • isDuplexConnection,
  • isNetworkConnection,
  • isSlaveBroker,
  • setDuplexConnection,
  • setNetworkConnection,
  • setNetworkProperties,
  • copy,
  • getBrokerUploadUrl,
  • getConnectionId,
  • getPeerBrokerInfos

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JFrame (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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