Tabnine Logo
Broker.getDestinations
Code IndexAdd Tabnine to your IDE (free)

How to use
getDestinations
method
in
org.apache.activemq.broker.Broker

Best Java code snippets using org.apache.activemq.broker.Broker.getDestinations (Showing top 20 results out of 315)

origin: apache/activemq

@Override
public Set<Destination> getDestinations(ActiveMQDestination destination) {
  return getNext().getDestinations(destination);
}
origin: apache/activemq

@Override
public ActiveMQDestination[] getDestinations() throws Exception {
  return getNext().getDestinations();
}
origin: apache/activemq

/**
 * Retrieve a set of all Destinations be used by the Broker
 * @return  all Destinations
 */
public Set<ActiveMQDestination> getDestinations(){
  Set<ActiveMQDestination> result;
  try {
    ActiveMQDestination[] destinations =  brokerService.getBroker().getDestinations();
    result = new HashSet<ActiveMQDestination>();
    Collections.addAll(result, destinations);
  }catch (Exception e){
    result = Collections.emptySet();
  }
  return result;
}
origin: apache/activemq

public static boolean isPrioritizedMessageSubscriber(Broker broker,Subscription sub) {
  boolean result = false;
  Set<Destination> destinations = broker.getDestinations(sub.getActiveMQDestination());
  if (destinations != null) {
    for (Destination dest:destinations) {
      if (dest.isPrioritizedMessages()) {
        result = true;
        break;
      }
    }
  }
  return result;
}
origin: apache/activemq

@Override
public void start() throws Exception {
  super.start();
  if (location == null) {
    location = new File(getBrokerService().getBrokerDataDirectory(), "destinations");
  }
  importDestinations();
  destinations.addAll(Arrays.asList(getBrokerService().getBroker().getDestinations()));
}
origin: apache/activemq

/**
 * Sends a message to the given destination which may be a wildcard
 *
 * @param context broker context
 * @param message message to send
 * @param destination possibly wildcard destination to send the message to
 * @throws Exception on error
 */
protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination) throws Exception {
  Broker broker = context.getConnectionContext().getBroker();
  Set<Destination> destinations = broker.getDestinations(destination);
  for (Destination dest : destinations) {
    dest.send(context, message.copy());
  }
}
origin: apache/activemq

@Override
protected void send(final ProducerBrokerExchange context, final Message message, ActiveMQDestination destination) throws Exception {
  final Broker broker = context.getConnectionContext().getBroker();
  final Set<Destination> destinations = broker.getDestinations(destination);
  final int numDestinations = destinations.size();
origin: apache/activemq

Set<Destination> destsToPause = regionBroker.getDestinations(dest);
try {
  for (Destination d: destsToPause) {
      ActiveMQDestination originalDestination = m.getMessage().getOriginalDestination();
      if (originalDestination != null) {
        for (Destination destination : regionBroker.getDestinations(originalDestination)) {
          DeadLetterStrategy strategy = destination.getDeadLetterStrategy();
          strategy.rollback(m.getMessage());
origin: org.apache.activemq/activemq-all

@Override
public ActiveMQDestination[] getDestinations() throws Exception {
  return getNext().getDestinations();
}
origin: org.apache.activemq/activemq-osgi

@Override
public Set<Destination> getDestinations(ActiveMQDestination destination) {
  return getNext().getDestinations(destination);
}
origin: org.apache.activemq/activemq-broker

@Override
public Set<Destination> getDestinations(ActiveMQDestination destination) {
  return getNext().getDestinations(destination);
}
origin: org.apache.activemq/activemq-all

@Override
public Set<Destination> getDestinations(ActiveMQDestination destination) {
  return getNext().getDestinations(destination);
}
origin: org.apache.activemq/activemq-broker

/**
 * Retrieve a set of all Destinations be used by the Broker
 * @return  all Destinations
 */
public Set<ActiveMQDestination> getDestinations(){
  Set<ActiveMQDestination> result;
  try {
    ActiveMQDestination[] destinations =  brokerService.getBroker().getDestinations();
    result = new HashSet<ActiveMQDestination>();
    Collections.addAll(result, destinations);
  }catch (Exception e){
    result = Collections.emptySet();
  }
  return result;
}
origin: org.apache.activemq/activemq-broker

@Override
public ActiveMQDestination[] getDestinations() throws Exception {
  return getNext().getDestinations();
}
origin: org.apache.activemq/activemq-broker

public static boolean isPrioritizedMessageSubscriber(Broker broker,Subscription sub) {
  boolean result = false;
  Set<Destination> destinations = broker.getDestinations(sub.getActiveMQDestination());
  if (destinations != null) {
    for (Destination dest:destinations) {
      if (dest.isPrioritizedMessages()) {
        result = true;
        break;
      }
    }
  }
  return result;
}
origin: org.apache.activemq/activemq-all

@Override
public void start() throws Exception {
  super.start();
  if (location == null) {
    location = new File(getBrokerService().getBrokerDataDirectory(), "destinations");
  }
  importDestinations();
  destinations.addAll(Arrays.asList(getBrokerService().getBroker().getDestinations()));
}
origin: org.apache.activemq/activemq-osgi

@Override
public void start() throws Exception {
  super.start();
  if (location == null) {
    location = new File(getBrokerService().getBrokerDataDirectory(), "destinations");
  }
  importDestinations();
  destinations.addAll(Arrays.asList(getBrokerService().getBroker().getDestinations()));
}
origin: org.apache.activemq/activemq-broker

@Override
public void start() throws Exception {
  super.start();
  if (location == null) {
    location = new File(getBrokerService().getBrokerDataDirectory(), "destinations");
  }
  importDestinations();
  destinations.addAll(Arrays.asList(getBrokerService().getBroker().getDestinations()));
}
origin: org.apache.activemq/activemq-broker

/**
 * Sends a message to the given destination which may be a wildcard
 *
 * @param context broker context
 * @param message message to send
 * @param destination possibly wildcard destination to send the message to
 * @throws Exception on error
 */
protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination) throws Exception {
  Broker broker = context.getConnectionContext().getBroker();
  Set<Destination> destinations = broker.getDestinations(destination);
  for (Destination dest : destinations) {
    dest.send(context, message.copy());
  }
}
origin: pierre/meteo

public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception {
  if (destination.isQueue() && destination.isPattern() && broker.getDestinations(destination).isEmpty()) {
    DestinationFilter filter = DestinationFilter.parseFilter(new ActiveMQQueue(prefix + DestinationFilter.ANY_DESCENDENT));
    if (filter.matches(destination)) {
      broker.addDestination(context, destination, false);
    }
  }
}
org.apache.activemq.brokerBrokergetDestinations

Popular methods of Broker

  • getAdaptor
    Get a Broker from the Broker Stack that is a particular class
  • getDestinationMap
    return a reference destination map of a region based on the destination type
  • removeDestination
  • commitTransaction
    Commits a transaction.
  • forgetTransaction
    Forgets a transaction.
  • getBrokerService
  • getClients
  • getPreparedTransactions
    Gets a list of all the prepared xa transactions.
  • getVmConnectorURI
  • removeConsumer
  • acknowledge
  • addBroker
    A remote Broker connects
  • acknowledge,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top PhpStorm 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