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

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

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

origin: apache/activemq

public void wakeupDestinationsForDispatch() {
  for (Destination dest : destinations) {
    dest.wakeup();
  }
}
origin: apache/activemq

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

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  Subscription sub = subscriptions.get(control.getConsumerId());
  if (sub != null && sub instanceof AbstractSubscription) {
    ((AbstractSubscription) sub).setPrefetchSize(control.getPrefetch());
    if (broker.getDestinationPolicy() != null) {
      PolicyEntry entry = broker.getDestinationPolicy().getEntryFor(control.getDestination());
      if (entry != null) {
        entry.configurePrefetch(sub);
      }
    }
    LOG.debug("setting prefetch: {}, on subscription: {}; resulting value: {}", new Object[]{ control.getPrefetch(), control.getConsumerId(), sub.getConsumerInfo().getPrefetchSize()});
    try {
      lookup(consumerExchange.getConnectionContext(), control.getDestination(),false).wakeup();
    } catch (Exception e) {
      LOG.warn("failed to deliver post consumerControl dispatch-wakeup, to destination: {}", control.getDestination(), e);
    }
  }
}
origin: apache/activemq

@Override
public void afterCommit()
    throws Exception {
  Destination nodeDest = (Destination) node.getRegionDestination();
  synchronized (dispatchLock) {
    getSubscriptionStatistics().getDequeues().increment();
    if (dispatched.remove(node)) {
      // if consumer is removed, dispatched will be empty and inflight will
      // already have been adjusted
      getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize());
      nodeDest.getDestinationStatistics().getInflight().decrement();
    }
  }
  contractPrefetchExtension(1);
  nodeDest.wakeup();
  dispatchPending();
}
origin: apache/activemq

destination.wakeup();
dispatchPending();
origin: org.apache.activemq/activemq-broker

public void wakeupDestinationsForDispatch() {
  for (Destination dest : destinations) {
    dest.wakeup();
  }
}
origin: org.apache.activemq/activemq-all

public void wakeupDestinationsForDispatch() {
  for (Destination dest : destinations) {
    dest.wakeup();
  }
}
origin: org.apache.activemq/activemq-osgi

public void wakeupDestinationsForDispatch() {
  for (Destination dest : destinations) {
    dest.wakeup();
  }
}
origin: org.apache.activemq/activemq-broker

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

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

@Override
public void wakeup() {
  next.wakeup();
}
origin: pierre/meteo

public void wakeup() {
  next.wakeup();
}
origin: pierre/meteo

  public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
    Subscription sub = subscriptions.get(control.getConsumerId());
    if (sub != null && sub instanceof AbstractSubscription) {
      ((AbstractSubscription) sub).setPrefetchSize(control.getPrefetch());
      if (LOG.isDebugEnabled()) {
        LOG.debug("setting prefetch: " + control.getPrefetch() + ", on subscription: "
            + control.getConsumerId());
      }
      try {
        lookup(consumerExchange.getConnectionContext(), control.getDestination(),false).wakeup();
      } catch (Exception e) {
        LOG.warn("failed to deliver consumerControl to destination: " + control.getDestination(), e);
      }
    }
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  Subscription sub = subscriptions.get(control.getConsumerId());
  if (sub != null && sub instanceof AbstractSubscription) {
    ((AbstractSubscription) sub).setPrefetchSize(control.getPrefetch());
    if (broker.getDestinationPolicy() != null) {
      PolicyEntry entry = broker.getDestinationPolicy().getEntryFor(control.getDestination());
      if (entry != null) {
        entry.configurePrefetch(sub);
      }
    }
    LOG.debug("setting prefetch: {}, on subscription: {}; resulting value: {}", new Object[]{ control.getPrefetch(), control.getConsumerId(), sub.getConsumerInfo().getPrefetchSize()});
    try {
      lookup(consumerExchange.getConnectionContext(), control.getDestination(),false).wakeup();
    } catch (Exception e) {
      LOG.warn("failed to deliver post consumerControl dispatch-wakeup, to destination: {}", control.getDestination(), e);
    }
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  Subscription sub = subscriptions.get(control.getConsumerId());
  if (sub != null && sub instanceof AbstractSubscription) {
    ((AbstractSubscription) sub).setPrefetchSize(control.getPrefetch());
    if (broker.getDestinationPolicy() != null) {
      PolicyEntry entry = broker.getDestinationPolicy().getEntryFor(control.getDestination());
      if (entry != null) {
        entry.configurePrefetch(sub);
      }
    }
    LOG.debug("setting prefetch: {}, on subscription: {}; resulting value: {}", new Object[]{ control.getPrefetch(), control.getConsumerId(), sub.getConsumerInfo().getPrefetchSize()});
    try {
      lookup(consumerExchange.getConnectionContext(), control.getDestination(),false).wakeup();
    } catch (Exception e) {
      LOG.warn("failed to deliver post consumerControl dispatch-wakeup, to destination: {}", control.getDestination(), e);
    }
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void processConsumerControl(ConsumerBrokerExchange consumerExchange, ConsumerControl control) {
  Subscription sub = subscriptions.get(control.getConsumerId());
  if (sub != null && sub instanceof AbstractSubscription) {
    ((AbstractSubscription) sub).setPrefetchSize(control.getPrefetch());
    if (broker.getDestinationPolicy() != null) {
      PolicyEntry entry = broker.getDestinationPolicy().getEntryFor(control.getDestination());
      if (entry != null) {
        entry.configurePrefetch(sub);
      }
    }
    LOG.debug("setting prefetch: {}, on subscription: {}; resulting value: {}", new Object[]{ control.getPrefetch(), control.getConsumerId(), sub.getConsumerInfo().getPrefetchSize()});
    try {
      lookup(consumerExchange.getConnectionContext(), control.getDestination(),false).wakeup();
    } catch (Exception e) {
      LOG.warn("failed to deliver post consumerControl dispatch-wakeup, to destination: {}", control.getDestination(), e);
    }
  }
}
origin: org.apache.activemq/activemq-broker

@Override
public void afterCommit()
    throws Exception {
  Destination nodeDest = (Destination) node.getRegionDestination();
  synchronized (dispatchLock) {
    getSubscriptionStatistics().getDequeues().increment();
    dispatched.remove(node);
    getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize());
    nodeDest.getDestinationStatistics().getInflight().decrement();
  }
  contractPrefetchExtension(1);
  nodeDest.wakeup();
  dispatchPending();
}
origin: org.apache.activemq/activemq-all

@Override
public void afterCommit()
    throws Exception {
  Destination nodeDest = (Destination) node.getRegionDestination();
  synchronized (dispatchLock) {
    getSubscriptionStatistics().getDequeues().increment();
    dispatched.remove(node);
    getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize());
    nodeDest.getDestinationStatistics().getInflight().decrement();
  }
  contractPrefetchExtension(1);
  nodeDest.wakeup();
  dispatchPending();
}
origin: org.apache.activemq/activemq-osgi

@Override
public void afterCommit()
    throws Exception {
  Destination nodeDest = (Destination) node.getRegionDestination();
  synchronized (dispatchLock) {
    getSubscriptionStatistics().getDequeues().increment();
    dispatched.remove(node);
    getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize());
    nodeDest.getDestinationStatistics().getInflight().decrement();
  }
  contractPrefetchExtension(1);
  nodeDest.wakeup();
  dispatchPending();
}
origin: org.apache.activemq/activemq-broker

destination.wakeup();
dispatchPending();
org.apache.activemq.broker.regionDestinationwakeup

Javadoc

optionally called by a Subscriber - to inform the Destination its ready for more messages

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
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • 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