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

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

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

origin: apache/activemq

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

@Override
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
  return getNext().addConsumer(context, info);
}
origin: apache/activemq

broker.addConsumer(cs.getContext(), info);
try {
  ss.addConsumer(info);
origin: pierre/meteo

public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
  return next.addConsumer(context, info);
}
origin: org.apache.activemq/activemq-all

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

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

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

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

@Override
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
  return getNext().addConsumer(context, info);
}
origin: pierre/meteo

public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
  return getNext().addConsumer(context, info);
}
origin: org.apache.activemq/activemq-all

@Override
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
  return getNext().addConsumer(context, info);
}
origin: org.apache.activemq/activemq-osgi

@Override
public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
  return getNext().addConsumer(context, info);
}
origin: pierre/meteo

public Response processAddConsumer(ConsumerInfo info) throws Exception {
  SessionId sessionId = info.getConsumerId().getParentId();
  ConnectionId connectionId = sessionId.getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  SessionState ss = cs.getSessionState(sessionId);
  if (ss == null) {
    throw new IllegalStateException(broker.getBrokerName()
        + " Cannot add a consumer to a session that had not been registered: " + sessionId);
  }
  // Avoid replaying dup commands
  if (!ss.getConsumerIds().contains(info.getConsumerId())) {
    broker.addConsumer(cs.getContext(), info);
    try {
      ss.addConsumer(info);
    } catch (IllegalStateException e) {
      broker.removeConsumer(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

broker.addConsumer(cs.getContext(), info);
try {
  ss.addConsumer(info);
origin: org.apache.activemq/activemq-all

broker.addConsumer(cs.getContext(), info);
try {
  ss.addConsumer(info);
origin: org.apache.activemq/activemq-osgi

broker.addConsumer(cs.getContext(), info);
try {
  ss.addConsumer(info);
org.apache.activemq.brokerBrokeraddConsumer

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,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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