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

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

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

origin: apache/activemq

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  next.acknowledge(consumerExchange, ack);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].acknowledge(consumerExchange, ack);
  }
}
origin: apache/activemq

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  getNext().acknowledge(consumerExchange, ack);
}
origin: apache/activemq

@Override
public Response processMessageAck(MessageAck ack) throws Exception {
  ConsumerBrokerExchange consumerExchange = getConsumerBrokerExchange(ack.getConsumerId());
  if (consumerExchange != null) {
    broker.acknowledge(consumerExchange, ack);
  } else if (ack.isInTransaction()) {
    LOG.warn("no matching consumer, ignoring ack {}", consumerExchange, ack);
  }
  return null;
}
origin: apache/activemq

public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  // This method may be invoked recursively.
  // Track original tx so that it can be restored.
  final ConnectionContext context = consumerExchange.getConnectionContext();
  Transaction originalTx = context.getTransaction();
  Transaction transaction = null;
  if (ack.isInTransaction()) {
    transaction = getTransaction(context, ack.getTransactionId(), false);
  }
  context.setTransaction(transaction);
  try {
    next.acknowledge(consumerExchange, ack);
  } finally {
    context.setTransaction(originalTx);
  }
}
origin: pierre/meteo

public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  next.acknowledge(consumerExchange, ack);
}
origin: org.apache.activemq/activemq-broker

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  next.acknowledge(consumerExchange, ack);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].acknowledge(consumerExchange, ack);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  next.acknowledge(consumerExchange, ack);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].acknowledge(consumerExchange, ack);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  next.acknowledge(consumerExchange, ack);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].acknowledge(consumerExchange, ack);
  }
}
origin: pierre/meteo

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  next.acknowledge(consumerExchange, ack);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].acknowledge(consumerExchange, ack);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  getNext().acknowledge(consumerExchange, ack);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  getNext().acknowledge(consumerExchange, ack);
}
origin: org.apache.activemq/activemq-all

@Override
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  getNext().acknowledge(consumerExchange, ack);
}
origin: pierre/meteo

public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  getNext().acknowledge(consumerExchange, ack);
}
origin: pierre/meteo

public Response processMessageAck(MessageAck ack) throws Exception {
  ConsumerBrokerExchange consumerExchange = getConsumerBrokerExchange(ack.getConsumerId());
  broker.acknowledge(consumerExchange, ack);
  return null;
}
origin: org.apache.activemq/activemq-broker

@Override
public Response processMessageAck(MessageAck ack) throws Exception {
  ConsumerBrokerExchange consumerExchange = getConsumerBrokerExchange(ack.getConsumerId());
  if (consumerExchange != null) {
    broker.acknowledge(consumerExchange, ack);
  } else if (ack.isInTransaction()) {
    LOG.warn("no matching consumer, ignoring ack {}", consumerExchange, ack);
  }
  return null;
}
origin: org.apache.activemq/activemq-all

@Override
public Response processMessageAck(MessageAck ack) throws Exception {
  ConsumerBrokerExchange consumerExchange = getConsumerBrokerExchange(ack.getConsumerId());
  if (consumerExchange != null) {
    broker.acknowledge(consumerExchange, ack);
  } else if (ack.isInTransaction()) {
    LOG.warn("no matching consumer, ignoring ack {}", consumerExchange, ack);
  }
  return null;
}
origin: org.apache.activemq/activemq-osgi

@Override
public Response processMessageAck(MessageAck ack) throws Exception {
  ConsumerBrokerExchange consumerExchange = getConsumerBrokerExchange(ack.getConsumerId());
  if (consumerExchange != null) {
    broker.acknowledge(consumerExchange, ack);
  } else if (ack.isInTransaction()) {
    LOG.warn("no matching consumer, ignoring ack {}", consumerExchange, ack);
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  // This method may be invoked recursively.
  // Track original tx so that it can be restored.
  final ConnectionContext context = consumerExchange.getConnectionContext();
  Transaction originalTx = context.getTransaction();
  Transaction transaction = null;
  if (ack.isInTransaction()) {
    transaction = getTransaction(context, ack.getTransactionId(), false);
  }
  context.setTransaction(transaction);
  try {
    next.acknowledge(consumerExchange, ack);
  } finally {
    context.setTransaction(originalTx);
  }
}
origin: pierre/meteo

public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  // This method may be invoked recursively.
  // Track original tx so that it can be restored.
  final ConnectionContext context = consumerExchange.getConnectionContext();
  Transaction originalTx = context.getTransaction();
  Transaction transaction = null;
  if (ack.isInTransaction()) {
    transaction = getTransaction(context, ack.getTransactionId(), false);
  }
  context.setTransaction(transaction);
  try {
    next.acknowledge(consumerExchange, ack);
  } finally {
    context.setTransaction(originalTx);
  }
}
origin: org.apache.activemq/activemq-all

public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception {
  // This method may be invoked recursively.
  // Track original tx so that it can be restored.
  final ConnectionContext context = consumerExchange.getConnectionContext();
  Transaction originalTx = context.getTransaction();
  Transaction transaction = null;
  if (ack.isInTransaction()) {
    transaction = getTransaction(context, ack.getTransactionId(), false);
  }
  context.setTransaction(transaction);
  try {
    next.acknowledge(consumerExchange, ack);
  } finally {
    context.setTransaction(originalTx);
  }
}
org.apache.activemq.brokerBrokeracknowledge

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
  • addBroker
    A remote Broker connects
  • removeConsumer,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • addSession,
  • beginTransaction

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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