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

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

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

origin: apache/activemq

@Override
public boolean isDisposed() {
  return next.isDisposed();
}
origin: apache/activemq

if (destination.isDisposed()) {
  disposed.add(destination);
  continue;
origin: apache/activemq

@Override
public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  ActiveMQDestination destination = message.getDestination();
  message.setBrokerInTime(System.currentTimeMillis());
  if (producerExchange.isMutable() || producerExchange.getRegion() == null
    || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
    // ensure the destination is registered with the RegionBroker
    producerExchange.getConnectionContext().getBroker()
      .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
    producerExchange.setRegion(getRegion(destination));
    producerExchange.setRegionDestination(null);
  }
  producerExchange.getRegion().send(producerExchange, message);
  // clean up so these references aren't kept (possible leak) in the producer exchange
  // especially since temps are transitory
  if (producerExchange.isMutable()) {
    producerExchange.setRegionDestination(null);
    producerExchange.setRegion(null);
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public boolean isDisposed() {
  return next.isDisposed();
}
origin: org.apache.activemq/activemq-all

@Override
public boolean isDisposed() {
  return next.isDisposed();
}
origin: org.apache.activemq/activemq-osgi

@Override
public boolean isDisposed() {
  return next.isDisposed();
}
origin: org.apache.activemq/activemq-broker

@Override
public void run() {
  if (maxTimeSinceLastAck < 0) {
    // nothing to do
    LOG.info("no limit set, slowConsumer strategy has nothing to do");
    return;
  }
  if (getMaxSlowDuration() > 0) {
    // For subscriptions that are already slow we mark them again and check below if
    // they've exceeded their configured lifetime.
    for (SlowConsumerEntry entry : slowConsumers.values()) {
      entry.mark();
    }
  }
  List<Destination> disposed = new ArrayList<Destination>();
  for (Destination destination : destinations.values()) {
    if (destination.isDisposed()) {
      disposed.add(destination);
      continue;
    }
    // Not explicitly documented but this returns a stable copy.
    List<Subscription> subscribers = destination.getConsumers();
    updateSlowConsumersList(subscribers);
  }
  // Clean up an disposed destinations to save space.
  for (Destination destination : disposed) {
    destinations.remove(destination.getName());
  }
  abortAllQualifiedSlowConsumers();
}
origin: org.apache.activemq/activemq-all

@Override
public void run() {
  if (maxTimeSinceLastAck < 0) {
    // nothing to do
    LOG.info("no limit set, slowConsumer strategy has nothing to do");
    return;
  }
  if (getMaxSlowDuration() > 0) {
    // For subscriptions that are already slow we mark them again and check below if
    // they've exceeded their configured lifetime.
    for (SlowConsumerEntry entry : slowConsumers.values()) {
      entry.mark();
    }
  }
  List<Destination> disposed = new ArrayList<Destination>();
  for (Destination destination : destinations.values()) {
    if (destination.isDisposed()) {
      disposed.add(destination);
      continue;
    }
    // Not explicitly documented but this returns a stable copy.
    List<Subscription> subscribers = destination.getConsumers();
    updateSlowConsumersList(subscribers);
  }
  // Clean up an disposed destinations to save space.
  for (Destination destination : disposed) {
    destinations.remove(destination.getName());
  }
  abortAllQualifiedSlowConsumers();
}
origin: org.apache.activemq/activemq-osgi

@Override
public void run() {
  if (maxTimeSinceLastAck < 0) {
    // nothing to do
    LOG.info("no limit set, slowConsumer strategy has nothing to do");
    return;
  }
  if (getMaxSlowDuration() > 0) {
    // For subscriptions that are already slow we mark them again and check below if
    // they've exceeded their configured lifetime.
    for (SlowConsumerEntry entry : slowConsumers.values()) {
      entry.mark();
    }
  }
  List<Destination> disposed = new ArrayList<Destination>();
  for (Destination destination : destinations.values()) {
    if (destination.isDisposed()) {
      disposed.add(destination);
      continue;
    }
    // Not explicitly documented but this returns a stable copy.
    List<Subscription> subscribers = destination.getConsumers();
    updateSlowConsumersList(subscribers);
  }
  // Clean up an disposed destinations to save space.
  for (Destination destination : disposed) {
    destinations.remove(destination.getName());
  }
  abortAllQualifiedSlowConsumers();
}
origin: org.apache.activemq/activemq-broker

@Override
public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  ActiveMQDestination destination = message.getDestination();
  message.setBrokerInTime(System.currentTimeMillis());
  if (producerExchange.isMutable() || producerExchange.getRegion() == null
    || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
    // ensure the destination is registered with the RegionBroker
    producerExchange.getConnectionContext().getBroker()
      .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
    producerExchange.setRegion(getRegion(destination));
    producerExchange.setRegionDestination(null);
  }
  producerExchange.getRegion().send(producerExchange, message);
  // clean up so these references aren't kept (possible leak) in the producer exchange
  // especially since temps are transitory
  if (producerExchange.isMutable()) {
    producerExchange.setRegionDestination(null);
    producerExchange.setRegion(null);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  ActiveMQDestination destination = message.getDestination();
  message.setBrokerInTime(System.currentTimeMillis());
  if (producerExchange.isMutable() || producerExchange.getRegion() == null
    || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
    // ensure the destination is registered with the RegionBroker
    producerExchange.getConnectionContext().getBroker()
      .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
    producerExchange.setRegion(getRegion(destination));
    producerExchange.setRegionDestination(null);
  }
  producerExchange.getRegion().send(producerExchange, message);
  // clean up so these references aren't kept (possible leak) in the producer exchange
  // especially since temps are transitory
  if (producerExchange.isMutable()) {
    producerExchange.setRegionDestination(null);
    producerExchange.setRegion(null);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void send(ProducerBrokerExchange producerExchange, Message message) throws Exception {
  ActiveMQDestination destination = message.getDestination();
  message.setBrokerInTime(System.currentTimeMillis());
  if (producerExchange.isMutable() || producerExchange.getRegion() == null
    || (producerExchange.getRegionDestination() != null && producerExchange.getRegionDestination().isDisposed())) {
    // ensure the destination is registered with the RegionBroker
    producerExchange.getConnectionContext().getBroker()
      .addDestination(producerExchange.getConnectionContext(), destination, isAllowTempAutoCreationOnSend());
    producerExchange.setRegion(getRegion(destination));
    producerExchange.setRegionDestination(null);
  }
  producerExchange.getRegion().send(producerExchange, message);
  // clean up so these references aren't kept (possible leak) in the producer exchange
  // especially since temps are transitory
  if (producerExchange.isMutable()) {
    producerExchange.setRegionDestination(null);
    producerExchange.setRegion(null);
  }
}
org.apache.activemq.broker.regionDestinationisDisposed

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
  • 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