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

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

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

origin: apache/activemq

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

@Override
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  getNext().removeProducer(context, info);
}
origin: apache/activemq

/**
 * A producer may de-register from sending to multiple destinations via a
 * composite destination.
 */
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.removeProducer(context, copy);
    }
  } else {
    next.removeProducer(context, info);
  }
}
origin: apache/activemq

@Override
public Response processRemoveProducer(ProducerId id) throws Exception {
  SessionId sessionId = id.getParentId();
  ConnectionId connectionId = sessionId.getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  SessionState ss = cs.getSessionState(sessionId);
  if (ss == null) {
    throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: "
        + sessionId);
  }
  ProducerState ps = ss.removeProducer(id);
  if (ps == null) {
    throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id);
  }
  removeProducerBrokerExchange(id);
  broker.removeProducer(cs.getContext(), ps.getInfo());
  return null;
}
origin: apache/activemq

  ss.addProducer(info);
} catch (IllegalStateException e) {
  broker.removeProducer(cs.getContext(), info);
origin: pierre/meteo

public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  next.removeProducer(context, info);
}
origin: org.apache.activemq/activemq-broker

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

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

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

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

@Override
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  getNext().removeProducer(context, info);
}
origin: org.apache.activemq/activemq-all

@Override
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  getNext().removeProducer(context, info);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  getNext().removeProducer(context, info);
}
origin: pierre/meteo

public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  getNext().removeProducer(context, info);
}
origin: org.apache.activemq/activemq-broker

/**
 * A producer may de-register from sending to multiple destinations via a
 * composite destination.
 */
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.removeProducer(context, copy);
    }
  } else {
    next.removeProducer(context, info);
  }
}
origin: org.apache.activemq/activemq-all

/**
 * A producer may de-register from sending to multiple destinations via a
 * composite destination.
 */
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.removeProducer(context, copy);
    }
  } else {
    next.removeProducer(context, info);
  }
}
origin: org.apache.activemq/activemq-osgi

/**
 * A producer may de-register from sending to multiple destinations via a
 * composite destination.
 */
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.removeProducer(context, copy);
    }
  } else {
    next.removeProducer(context, info);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public Response processRemoveProducer(ProducerId id) throws Exception {
  SessionId sessionId = id.getParentId();
  ConnectionId connectionId = sessionId.getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  SessionState ss = cs.getSessionState(sessionId);
  if (ss == null) {
    throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: "
        + sessionId);
  }
  ProducerState ps = ss.removeProducer(id);
  if (ps == null) {
    throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id);
  }
  removeProducerBrokerExchange(id);
  broker.removeProducer(cs.getContext(), ps.getInfo());
  return null;
}
origin: pierre/meteo

public Response processRemoveProducer(ProducerId id) throws Exception {
  SessionId sessionId = id.getParentId();
  ConnectionId connectionId = sessionId.getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  SessionState ss = cs.getSessionState(sessionId);
  if (ss == null) {
    throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: "
        + sessionId);
  }
  ProducerState ps = ss.removeProducer(id);
  if (ps == null) {
    throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id);
  }
  removeProducerBrokerExchange(id);
  broker.removeProducer(cs.getContext(), ps.getInfo());
  return null;
}
origin: org.apache.activemq/activemq-all

@Override
public Response processRemoveProducer(ProducerId id) throws Exception {
  SessionId sessionId = id.getParentId();
  ConnectionId connectionId = sessionId.getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  SessionState ss = cs.getSessionState(sessionId);
  if (ss == null) {
    throw new IllegalStateException("Cannot remove a producer from a session that had not been registered: "
        + sessionId);
  }
  ProducerState ps = ss.removeProducer(id);
  if (ps == null) {
    throw new IllegalStateException("Cannot remove a producer that had not been registered: " + id);
  }
  removeProducerBrokerExchange(id);
  broker.removeProducer(cs.getContext(), ps.getInfo());
  return null;
}
org.apache.activemq.brokerBrokerremoveProducer

Javadoc

Removes a producer.

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
  • getDestinations
  • getPreparedTransactions
    Gets a list of all the prepared xa transactions.
  • getVmConnectorURI
  • removeConsumer
  • acknowledge
  • removeConsumer,
  • acknowledge,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now