congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StatefulRetryOperationsInterceptorFactoryBean.getObject
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-amqp

@Override
public StatefulRetryOperationsInterceptor build() {
  this.applyCommonSettings(this.factoryBean);
  if (this.messageKeyGenerator != null) {
    this.factoryBean.setMessageKeyGenerator(this.messageKeyGenerator);
  }
  if (this.newMessageIdentifier != null) {
    this.factoryBean.setNewMessageIdentifier(this.newMessageIdentifier);
  }
  return this.factoryBean.getObject();
}
origin: org.springframework.amqp/spring-rabbit

@Override
public StatefulRetryOperationsInterceptor build() {
  this.applyCommonSettings(this.factoryBean);
  if (this.messageKeyGenerator != null) {
    this.factoryBean.setMessageKeyGenerator(this.messageKeyGenerator);
  }
  if (this.newMessageIdentifier != null) {
    this.factoryBean.setNewMessageIdentifier(this.newMessageIdentifier);
  }
  return this.factoryBean.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.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: 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

fb.setMessageRecoverer(new RejectAndDontRequeueRecoverer());
Advice retryInterceptor = fb.getObject();
container.setAdviceChain(retryInterceptor);
container.start();
origin: spring-projects/spring-amqp

fb.setRetryOperations(retryTemplate);
Advice retryInterceptor = fb.getObject();
container.setAdviceChain(retryInterceptor);
container.start();
origin: spring-projects/spring-amqp

fb.setMessageRecoverer(new RejectAndDontRequeueRecoverer());
Advice retryInterceptor = fb.getObject();
container.setAdviceChain(retryInterceptor);
container.start();
org.springframework.amqp.rabbit.configStatefulRetryOperationsInterceptorFactoryBeangetObject

Popular methods of StatefulRetryOperationsInterceptorFactoryBean

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • BoxLayout (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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