Codota Logo
Destination.acknowledge
Code IndexAdd Codota to your IDE (free)

How to use
acknowledge
method
in
org.apache.activemq.broker.region.Destination

Best Java code snippets using org.apache.activemq.broker.region.Destination.acknowledge (Showing top 15 results out of 315)

  • Common ways to obtain Destination
private void myMethod () {
Destination d =
  • Codota IconBrokerService brokerService;ActiveMQDestination destination;brokerService.getDestination(destination)
  • Codota IconBrokerFilter zuper;zuper.addDestination(context, destination, create)
  • Codota IconProducerBrokerExchange producerBrokerExchange;producerBrokerExchange.getRegionDestination()
  • Smart code suggestions by Codota
}
origin: apache/activemq

@Override
public void acknowledge(ConnectionContext context, Subscription sub, MessageAck ack, MessageReference node) throws IOException {
  next.acknowledge(context, sub, ack, node);
}
origin: apache/activemq

/**
 * store will have a pending ack for all durables, irrespective of the
 * selector so we need to ack if node is un-matched
 */
@Override
public void unmatched(MessageReference node) throws IOException {
  MessageAck ack = new MessageAck();
  ack.setAckType(MessageAck.UNMATCHED_ACK_TYPE);
  ack.setMessageID(node.getMessageId());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(this.getContext(), this, ack, node);
}
origin: apache/activemq

@Override
protected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference node) throws IOException {
  this.setTimeOfLastMessageAck(System.currentTimeMillis());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(context, this, ack, node);
  redeliveredMessages.remove(node.getMessageId());
  node.decrementReferenceCount();
  ((Destination)node.getRegionDestination()).getDestinationStatistics().getDequeues().increment();
  if (info.isNetworkSubscription()) {
    ((Destination)node.getRegionDestination()).getDestinationStatistics().getForwards().add(ack.getMessageCount());
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void acknowledge(ConnectionContext context, Subscription sub, MessageAck ack, MessageReference node) throws IOException {
  next.acknowledge(context, sub, ack, node);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void acknowledge(ConnectionContext context, Subscription sub, MessageAck ack, MessageReference node) throws IOException {
  next.acknowledge(context, sub, ack, node);
}
origin: org.apache.activemq/activemq-all

@Override
public void acknowledge(ConnectionContext context, Subscription sub, MessageAck ack, MessageReference node) throws IOException {
  next.acknowledge(context, sub, ack, node);
}
origin: pierre/meteo

public void acknowledge(ConnectionContext context, Subscription sub, MessageAck ack, MessageReference node) throws IOException {
  next.acknowledge(context, sub, ack, node);
}
origin: pierre/meteo

protected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference node) throws IOException {
  node.getRegionDestination().acknowledge(context, this, ack, node);
  redeliveredMessages.remove(node.getMessageId());
  node.decrementReferenceCount();
}
origin: org.apache.activemq/activemq-broker

/**
 * store will have a pending ack for all durables, irrespective of the
 * selector so we need to ack if node is un-matched
 */
@Override
public void unmatched(MessageReference node) throws IOException {
  MessageAck ack = new MessageAck();
  ack.setAckType(MessageAck.UNMATCHED_ACK_TYPE);
  ack.setMessageID(node.getMessageId());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(this.getContext(), this, ack, node);
}
origin: org.apache.activemq/activemq-all

/**
 * store will have a pending ack for all durables, irrespective of the
 * selector so we need to ack if node is un-matched
 */
@Override
public void unmatched(MessageReference node) throws IOException {
  MessageAck ack = new MessageAck();
  ack.setAckType(MessageAck.UNMATCHED_ACK_TYPE);
  ack.setMessageID(node.getMessageId());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(this.getContext(), this, ack, node);
}
origin: org.apache.activemq/activemq-osgi

/**
 * store will have a pending ack for all durables, irrespective of the
 * selector so we need to ack if node is un-matched
 */
@Override
public void unmatched(MessageReference node) throws IOException {
  MessageAck ack = new MessageAck();
  ack.setAckType(MessageAck.UNMATCHED_ACK_TYPE);
  ack.setMessageID(node.getMessageId());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(this.getContext(), this, ack, node);
}
origin: pierre/meteo

/**
 * store will have a pending ack for all durables, irrespective of the selector
 * so we need to ack if node is un-matched
 */
public void unmatched(MessageReference node) throws IOException {
  MessageAck ack = new MessageAck();
  ack.setAckType(MessageAck.UNMATCHED_ACK_TYPE);
  ack.setMessageID(node.getMessageId());
  node.getRegionDestination().acknowledge(this.getContext(), this, ack, node);
}
origin: org.apache.activemq/activemq-broker

@Override
protected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference node) throws IOException {
  this.setTimeOfLastMessageAck(System.currentTimeMillis());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(context, this, ack, node);
  redeliveredMessages.remove(node.getMessageId());
  node.decrementReferenceCount();
  ((Destination)node.getRegionDestination()).getDestinationStatistics().getDequeues().increment();
  if (info.isNetworkSubscription()) {
    ((Destination)node.getRegionDestination()).getDestinationStatistics().getForwards().add(ack.getMessageCount());
  }
}
origin: org.apache.activemq/activemq-all

@Override
protected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference node) throws IOException {
  this.setTimeOfLastMessageAck(System.currentTimeMillis());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(context, this, ack, node);
  redeliveredMessages.remove(node.getMessageId());
  node.decrementReferenceCount();
  ((Destination)node.getRegionDestination()).getDestinationStatistics().getDequeues().increment();
  if (info.isNetworkSubscription()) {
    ((Destination)node.getRegionDestination()).getDestinationStatistics().getForwards().add(ack.getMessageCount());
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
protected void acknowledge(ConnectionContext context, MessageAck ack, MessageReference node) throws IOException {
  this.setTimeOfLastMessageAck(System.currentTimeMillis());
  Destination regionDestination = (Destination) node.getRegionDestination();
  regionDestination.acknowledge(context, this, ack, node);
  redeliveredMessages.remove(node.getMessageId());
  node.decrementReferenceCount();
  ((Destination)node.getRegionDestination()).getDestinationStatistics().getDequeues().increment();
  if (info.isNetworkSubscription()) {
    ((Destination)node.getRegionDestination()).getDestinationStatistics().getForwards().add(ack.getMessageCount());
  }
}
org.apache.activemq.broker.regionDestinationacknowledge

Popular methods of Destination

  • getConsumers
  • getDestinationStatistics
  • getName
  • getActiveMQDestination
  • browse
  • removeSubscription
  • addProducer
  • addSubscription
  • dispose
  • fastProducer
    Called to notify a producer is too fast
  • gc
  • getBlockedProducerWarningInterval
  • gc,
  • getBlockedProducerWarningInterval,
  • getCursorMemoryHighWaterMark,
  • getDeadLetterStrategy,
  • getMaxAuditDepth,
  • getMaxBrowsePageSize,
  • getMaxPageSize,
  • getMaxProducersToAudit,
  • getMemoryUsage

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now