congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • 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