Tabnine Logo
StatefulRetryOperationsInterceptorFactoryBean.setRetryOperations
Code IndexAdd Tabnine to your IDE (free)

How to use
setRetryOperations
method
in
org.springframework.amqp.rabbit.config.StatefulRetryOperationsInterceptorFactoryBean

Best Java code snippets using org.springframework.amqp.rabbit.config.StatefulRetryOperationsInterceptorFactoryBean.setRetryOperations (Showing top 7 results out of 315)

origin: com.bluelock/camel-spring-amqp

/**
 * Do not have Spring AMQP re-try messages upon failure, leave it to Camel
 * @return An advice chain populated with a NeverRetryPolicy
 */
public final Advice[] getAdviceChain() {
  RetryTemplate retryRule = new RetryTemplate();
  retryRule.setRetryPolicy(new NeverRetryPolicy());
  
  StatefulRetryOperationsInterceptorFactoryBean retryOperation = new StatefulRetryOperationsInterceptorFactoryBean();
  retryOperation.setRetryOperations(retryRule);
  retryOperation.setMessageKeyGenerator(new DefaultKeyGenerator());
  
  return new Advice[] { retryOperation.getObject() };
}
origin: Bluelock/camel-spring-amqp

/**
 * Do not have Spring AMQP re-try messages upon failure, leave it to Camel
 * @return An advice chain populated with a NeverRetryPolicy
 */
public final Advice[] getAdviceChain() {
  RetryTemplate retryRule = new RetryTemplate();
  retryRule.setRetryPolicy(new NeverRetryPolicy());
  
  StatefulRetryOperationsInterceptorFactoryBean retryOperation = new StatefulRetryOperationsInterceptorFactoryBean();
  retryOperation.setRetryOperations(retryRule);
  retryOperation.setMessageKeyGenerator(new DefaultKeyGenerator());
  
  return new Advice[] { retryOperation.getObject() };
}
origin: com.dell.cpsd/common-rabbitmq

public DefaultRetryPolicyAdvice(MessageRecoverer messageRecoverer, RetryPolicy retryPolicy)
{
  RetryTemplate retryTemplate = new RetryTemplate();
  retryTemplate.setBackOffPolicy(createBackOffPolicy());
  retryTemplate.setRetryPolicy(retryPolicy);
  retryTemplate.registerListener(new RetryErrorListener());
  StatefulRetryOperationsInterceptorFactoryBean factory = new StatefulRetryOperationsInterceptorFactoryBean();
  factory.setRetryOperations(retryTemplate);
  factory.setMessageKeyGenerator(new DefaultMessageKeyGenerator());
  factory.setMessageRecoverer(messageRecoverer);
  this.delegate = factory.getObject();
}
origin: spring-projects/spring-amqp

RetryContextCache cache = spy(new MapRetryContextCache());
retryTemplate.setRetryContextCache(cache);
fb.setRetryOperations(retryTemplate);
fb.setMessageRecoverer(new RejectAndDontRequeueRecoverer());
origin: com.dell.cpsd.common.messaging/common-rabbitmq

public DefaultRetryPolicyAdvice(MessageRecoverer messageRecoverer, RetryPolicy retryPolicy)
{
  RetryTemplate retryTemplate = new RetryTemplate();
  retryTemplate.setBackOffPolicy(createBackOffPolicy());
  retryTemplate.setRetryPolicy(retryPolicy);
  retryTemplate.registerListener(new RetryErrorListener());
  StatefulRetryOperationsInterceptorFactoryBean factory = new StatefulRetryOperationsInterceptorFactoryBean();
  factory.setRetryOperations(retryTemplate);
  factory.setMessageKeyGenerator(new DefaultMessageKeyGenerator());
  factory.setMessageRecoverer(messageRecoverer);
  this.delegate = factory.getObject();
}
origin: spring-projects/spring-amqp

RetryContextCache cache = spy(new MapRetryContextCache());
retryTemplate.setRetryContextCache(cache);
fb.setRetryOperations(retryTemplate);
fb.setMessageRecoverer(new RejectAndDontRequeueRecoverer());
origin: spring-projects/spring-amqp

RetryContextCache cache = spy(new MapRetryContextCache());
retryTemplate.setRetryContextCache(cache);
fb.setRetryOperations(retryTemplate);
org.springframework.amqp.rabbit.configStatefulRetryOperationsInterceptorFactoryBeansetRetryOperations

Popular methods of StatefulRetryOperationsInterceptorFactoryBean

  • getObject
  • setMessageKeyGenerator
  • <init>
  • setMessageRecoverer
  • getMessageRecoverer
  • getRetryOperations
  • setNewMessageIdentifier

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • JTable (javax.swing)
  • CodeWhisperer 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