Tabnine Logo
DirectMessageListenerContainer.consumerRemoved
Code IndexAdd Tabnine to your IDE (free)

How to use
consumerRemoved
method
in
org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer

Best Java code snippets using org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer.consumerRemoved (Showing top 4 results out of 315)

origin: spring-projects/spring-amqp

private void cancelConsumer(SimpleConsumer consumer) {
  try {
    if (this.logger.isDebugEnabled()) {
      this.logger.debug("Canceling " + consumer);
    }
    synchronized (consumer) {
      consumer.canceled = true;
      if (this.messagesPerAck > 1) {
        consumer.ackIfNecessary(0L);
      }
    }
    consumer.getChannel().basicCancel(consumer.getConsumerTag());
  }
  catch (IOException e) {
    this.logger.error("Failed to cancel consumer: " + consumer, e);
  }
  finally {
    this.consumers.remove(consumer);
    consumerRemoved(consumer);
  }
}
origin: org.springframework.amqp/spring-rabbit

private void cancelConsumer(SimpleConsumer consumer) {
  try {
    if (this.logger.isDebugEnabled()) {
      this.logger.debug("Canceling " + consumer);
    }
    synchronized (consumer) {
      consumer.canceled = true;
      if (this.messagesPerAck > 1) {
        consumer.ackIfNecessary(0L);
      }
    }
    consumer.getChannel().basicCancel(consumer.getConsumerTag());
  }
  catch (IOException e) {
    this.logger.error("Failed to cancel consumer: " + consumer, e);
  }
  finally {
    this.consumers.remove(consumer);
    consumerRemoved(consumer);
  }
}
origin: spring-projects/spring-amqp

private void finalizeConsumer() {
  RabbitUtils.setPhysicalCloseRequired(getChannel(), true);
  RabbitUtils.closeChannel(getChannel());
  RabbitUtils.closeConnection(this.connection);
  DirectMessageListenerContainer.this.cancellationLock.release(this);
  consumerRemoved(this);
}
origin: org.springframework.amqp/spring-rabbit

private void finalizeConsumer() {
  RabbitUtils.setPhysicalCloseRequired(getChannel(), true);
  RabbitUtils.closeChannel(getChannel());
  RabbitUtils.closeConnection(this.connection);
  DirectMessageListenerContainer.this.cancellationLock.release(this);
  consumerRemoved(this);
}
org.springframework.amqp.rabbit.listenerDirectMessageListenerContainerconsumerRemoved

Javadoc

Called whenever a consumer is removed.

Popular methods of DirectMessageListenerContainer

  • <init>
    Create an instance with the provided connection factory.
  • setConsumersPerQueue
    Each queue runs in its own consumer; set this property to create multiple consumers for each queue.
  • setAckTimeout
    An approximate timeout; when #setMessagesPerAck(int) is greater than 1, and this time elapses since
  • setMessagesPerAck
    Set the number of messages to receive before acknowledging (success). A failed message will short-ci
  • addQueues
  • afterPropertiesSet
  • getAcknowledgeMode
  • getConnectionFactory
  • getQueueNames
  • isActive
  • isRunning
  • removeQueues
  • isRunning,
  • removeQueues,
  • setIdleEventInterval,
  • setMessageListener,
  • setMissingQueuesFatal,
  • setMonitorInterval,
  • setPrefetchCount,
  • setQueueNames,
  • actualShutDown,
  • actualStart

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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