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

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

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

origin: apache/activemq

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeDestination(context, destination, timeout);
  }
}
origin: apache/activemq

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  for (SecurityContext sc : securityContexts) {
    sc.getAuthorizedWriteDests().remove(destination);
  }
}
origin: apache/activemq

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  getNext().removeDestination(context, destination, timeout);
}
origin: apache/activemq

public void removeDestination(ActiveMQDestination destination) throws Exception {
  getBroker().removeDestination(getAdminConnectionContext(), destination, 0);
}
origin: apache/activemq

  getRoot().removeDestination(context, dest.getActiveMQDestination(), isAllowTempAutoCreationOnSend() ? 1 : 0);
} catch (Throwable e) {
  LOG.error("Failed to remove inactive destination {}", dest, e);
origin: apache/activemq

DestinationInfo di = iter.next();
try {
  broker.removeDestination(cs.getContext(), di.getDestination(), 0);
} catch (Throwable e) {
  SERVICELOG.warn("Failed to remove tmp destination {}", di.getDestination(), e);
origin: apache/activemq

@Override
public void removeTopic(String name) throws Exception {
  safeGetBroker().getContextBroker().removeDestination(BrokerSupport.getConnectionContext(safeGetBroker().getContextBroker()), new ActiveMQTopic(name), 1000);
}
origin: apache/activemq

@Override
public void removeQueue(String name) throws Exception {
  safeGetBroker().getContextBroker().removeDestination(BrokerSupport.getConnectionContext(safeGetBroker().getContextBroker()), new ActiveMQQueue(name), 1000);
}
origin: apache/activemq

for (ActiveMQTopic advisoryDestination : advisoryDestinations) {
  try {
    next.removeDestination(context, advisoryDestination, -1);
  } catch (Exception expectedIfDestinationDidNotExistYet) {
origin: gocd/gocd

public void removeQueue(String queueName) {
  try {
    ActiveMQQueue destination = new ActiveMQQueue(queueName);
    ConnectionContext connectionContext = BrokerSupport.getConnectionContext(broker.getBroker());
    Destination brokerDestination = broker.getDestination(destination);
    List<Subscription> consumers = brokerDestination.getConsumers();
    for (Subscription consumer : consumers) {
      consumer.remove(connectionContext, brokerDestination);
      brokerDestination.removeSubscription(connectionContext, consumer, 0);
    }
    broker.getBroker().removeDestination(connectionContext, destination, 1000);
    broker.removeDestination(destination);
  } catch (Exception e) {
    throw bomb(e);
  }
}
origin: apache/activemq

@Override
public void removeDestinationInfo(ConnectionContext context, DestinationInfo destInfo) throws Exception {
  super.removeDestinationInfo(context, destInfo);
  DestinationInfo info = destinations.remove(destInfo.getDestination());
  if (info != null) {
    // ensure we don't modify (and loose/overwrite) an in-flight add advisory, so duplicate
    info = info.copy();
    info.setDestination(destInfo.getDestination());
    info.setOperationType(DestinationInfo.REMOVE_OPERATION_TYPE);
    ActiveMQTopic topic = AdvisorySupport.getDestinationAdvisoryTopic(destInfo.getDestination());
    fireAdvisory(context, topic, info);
    ActiveMQTopic[] advisoryDestinations = AdvisorySupport.getAllDestinationAdvisoryTopics(destInfo.getDestination());
    for (ActiveMQTopic advisoryDestination : advisoryDestinations) {
      try {
        next.removeDestination(context, advisoryDestination, -1);
      } catch (Exception expectedIfDestinationDidNotExistYet) {
      }
    }
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeDestination(context, destination, timeout);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeDestination(context, destination, timeout);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeDestination(context, destination, timeout);
  }
}
origin: pierre/meteo

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].removeDestination(context, destination, timeout);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  for (SecurityContext sc : securityContexts) {
    sc.getAuthorizedWriteDests().remove(destination);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  getNext().removeDestination(context, destination, timeout);
}
origin: org.apache.activemq/activemq-all

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  for (SecurityContext sc : securityContexts) {
    sc.getAuthorizedWriteDests().remove(destination);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception {
  next.removeDestination(context, destination, timeout);
  for (SecurityContext sc : securityContexts) {
    sc.getAuthorizedWriteDests().remove(destination);
  }
}
origin: org.apache.activemq/activemq-broker

public void removeDestination(ActiveMQDestination destination) throws Exception {
  getBroker().removeDestination(getAdminConnectionContext(), destination, 0);
}
org.apache.activemq.brokerBrokerremoveDestination

Javadoc

Remove and process a DestinationInfo object

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
  • commitTransaction
    Commits a transaction.
  • forgetTransaction
    Forgets a transaction.
  • getBrokerService
  • getClients
  • getDestinations
  • 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
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JComboBox (javax.swing)
  • 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