Codota Logo
BrokerInfo.decrementRefCount
Code IndexAdd Codota 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)

  • Common ways to obtain BrokerInfo
private void myMethod () {
BrokerInfo b =
  • Codota Iconnew BrokerInfo()
  • Codota IconTransportConnector transportConnector;transportConnector.getBrokerInfo().copy()
  • Codota IconConnector connector;connector.getBrokerInfo()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now