congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DirectMessageListenerContainer.isDefaultRequeueRejected
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-amqp

private void rollback(long deliveryTag, Exception e) {
  if (isChannelTransacted()) {
    RabbitUtils.rollbackIfNecessary(getChannel());
  }
  if (this.ackRequired) {
    try {
      if (this.messagesPerAck > 1) {
        synchronized (this) {
          if (this.pendingAcks > 0) {
            sendAck(System.currentTimeMillis());
          }
        }
      }
      getChannel().basicNack(deliveryTag, true,
          ContainerUtils.shouldRequeue(isDefaultRequeueRejected(), e, this.logger));
    }
    catch (IOException e1) {
      this.logger.error("Failed to nack message", e1);
    }
  }
  if (isChannelTransacted()) {
    RabbitUtils.commitIfNecessary(getChannel());
  }
}
origin: org.springframework.amqp/spring-rabbit

private void rollback(long deliveryTag, Exception e) {
  if (isChannelTransacted()) {
    RabbitUtils.rollbackIfNecessary(getChannel());
  }
  if (this.ackRequired) {
    try {
      if (this.messagesPerAck > 1) {
        synchronized (this) {
          if (this.pendingAcks > 0) {
            sendAck(System.currentTimeMillis());
          }
        }
      }
      getChannel().basicNack(deliveryTag, true,
          ContainerUtils.shouldRequeue(isDefaultRequeueRejected(), e, this.logger));
    }
    catch (IOException e1) {
      this.logger.error("Failed to nack message", e1);
    }
  }
  if (isChannelTransacted()) {
    RabbitUtils.commitIfNecessary(getChannel());
  }
}
org.springframework.amqp.rabbit.listenerDirectMessageListenerContainerisDefaultRequeueRejected

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
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Notification (javax.management)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now