Tabnine Logo
Destination.clearPendingMessages
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/activemq

@Override
public void clearPendingMessages(int pendingAdditionsCount) {
  next.clearPendingMessages(pendingAdditionsCount);
}
origin: apache/activemq

@Override
public void afterRollback() throws Exception {
  if (!messageSend) {
    Destination dest = transactionBroker.addDestination(transactionBroker.context, destination, false);
    dest.clearPendingMessages(opCount);
    dest.getDestinationStatistics().getMessages().add(opCount);
    LOG.debug("cleared pending from afterRollback: {}", destination);
  }
}
origin: apache/activemq

  @Override
  public void afterCommit() throws Exception {
    Destination dest = transactionBroker.addDestination(transactionBroker.context, destination, false);
    if (messageSend) {
      dest.clearPendingMessages(opCount);
      dest.getDestinationStatistics().getEnqueues().add(opCount);
      dest.getDestinationStatistics().getMessages().add(opCount);
      LOG.debug("cleared pending from afterCommit: {}", destination);
    } else {
      dest.getDestinationStatistics().getDequeues().add(opCount);
    }
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void clearPendingMessages() {
  next.clearPendingMessages();
}
origin: org.apache.activemq/activemq-broker

@Override
public void clearPendingMessages() {
  next.clearPendingMessages();
}
origin: org.apache.activemq/activemq-osgi

@Override
public void clearPendingMessages() {
  next.clearPendingMessages();
}
origin: org.apache.activemq/activemq-broker

@Override
public void afterRollback() throws Exception {
  if (!messageSend) {
    destination.clearPendingMessages();
    LOG.debug("cleared pending from afterRollback: {}", destination);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void afterRollback() throws Exception {
  if (!messageSend) {
    destination.clearPendingMessages();
    LOG.debug("cleared pending from afterRollback: {}", destination);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void afterRollback() throws Exception {
  if (!messageSend) {
    destination.clearPendingMessages();
    LOG.debug("cleared pending from afterRollback: {}", destination);
  }
}
origin: org.apache.activemq/activemq-broker

  @Override
  public void afterCommit() throws Exception {
    if (messageSend) {
      destination.clearPendingMessages();
      destination.getDestinationStatistics().getEnqueues().add(opCount);
      destination.getDestinationStatistics().getMessages().add(opCount);
      LOG.debug("cleared pending from afterCommit: {}", destination);
    } else {
      destination.getDestinationStatistics().getDequeues().add(opCount);
      destination.getDestinationStatistics().getMessages().subtract(opCount);
    }
  }
}
origin: org.apache.activemq/activemq-all

  @Override
  public void afterCommit() throws Exception {
    if (messageSend) {
      destination.clearPendingMessages();
      destination.getDestinationStatistics().getEnqueues().add(opCount);
      destination.getDestinationStatistics().getMessages().add(opCount);
      LOG.debug("cleared pending from afterCommit: {}", destination);
    } else {
      destination.getDestinationStatistics().getDequeues().add(opCount);
      destination.getDestinationStatistics().getMessages().subtract(opCount);
    }
  }
}
origin: org.apache.activemq/activemq-osgi

  @Override
  public void afterCommit() throws Exception {
    if (messageSend) {
      destination.clearPendingMessages();
      destination.getDestinationStatistics().getEnqueues().add(opCount);
      destination.getDestinationStatistics().getMessages().add(opCount);
      LOG.debug("cleared pending from afterCommit: {}", destination);
    } else {
      destination.getDestinationStatistics().getDequeues().add(opCount);
      destination.getDestinationStatistics().getMessages().subtract(opCount);
    }
  }
}
org.apache.activemq.broker.regionDestinationclearPendingMessages

Popular methods of Destination

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Top plugins for WebStorm
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