Codota Logo
RetryTemplate.open
Code IndexAdd Codota to your IDE (free)

How to use
open
method
in
org.springframework.retry.support.RetryTemplate

Best Java code snippets using org.springframework.retry.support.RetryTemplate.open (Showing top 6 results out of 315)

  • Common ways to obtain RetryTemplate
private void myMethod () {
RetryTemplate r =
  • Codota Iconnew RetryTemplate()
  • Codota IconDefaultRetryPolicyFactory.makeRabbitTemplateRetry()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-batch

@Override
protected RetryContext open(RetryPolicy retryPolicy, RetryState state) {
  BatchRetryState batchState = (BatchRetryState) state;
  Collection<RetryContext> contexts = new ArrayList<>();
  for (RetryState retryState : batchState.keys) {
    contexts.add(super.open(retryPolicy, retryState));
  }
  return new BatchRetryContext(RetrySynchronizationManager.getContext(), contexts);
}
origin: spring-projects/spring-retry

RetryContext context = open(retryPolicy, state);
if (this.logger.isTraceEnabled()) {
  this.logger.trace("RetryContext retrieved: " + context);
origin: org.springframework.batch/spring-batch-core

@Override
protected RetryContext open(RetryPolicy retryPolicy, RetryState state) {
  BatchRetryState batchState = (BatchRetryState) state;
  Collection<RetryContext> contexts = new ArrayList<RetryContext>();
  for (RetryState retryState : batchState.keys) {
    contexts.add(super.open(retryPolicy, retryState));
  }
  return new BatchRetryContext(RetrySynchronizationManager.getContext(), contexts);
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
protected RetryContext open(RetryPolicy retryPolicy, RetryState state) {
  BatchRetryState batchState = (BatchRetryState) state;
  Collection<RetryContext> contexts = new ArrayList<RetryContext>();
  for (RetryState retryState : batchState.keys) {
    contexts.add(super.open(retryPolicy, retryState));
  }
  return new BatchRetryContext(RetrySynchronizationManager.getContext(), contexts);
}
origin: apache/servicemix-bundles

@Override
protected RetryContext open(RetryPolicy retryPolicy, RetryState state) {
  BatchRetryState batchState = (BatchRetryState) state;
  Collection<RetryContext> contexts = new ArrayList<RetryContext>();
  for (RetryState retryState : batchState.keys) {
    contexts.add(super.open(retryPolicy, retryState));
  }
  return new BatchRetryContext(RetrySynchronizationManager.getContext(), contexts);
}
origin: org.springframework.retry/spring-retry

RetryContext context = open(retryPolicy, state);
if (this.logger.isTraceEnabled()) {
  this.logger.trace("RetryContext retrieved: " + context);
org.springframework.retry.supportRetryTemplateopen

Javadoc

Delegate to the RetryPolicy having checked in the cache for an existing value if the state is not null.

Popular methods of RetryTemplate

  • <init>
  • setRetryPolicy
    Setter for RetryPolicy.
  • setBackOffPolicy
    Setter for BackOffPolicy.
  • execute
    Execute the callback once if the policy dictates that we can, re-throwing any exception encountered
  • registerListener
    Register an additional listener.
  • setListeners
    Setter for listeners. The listeners are executed before and after a retry block (i.e. before and aft
  • setRetryContextCache
    Public setter for the RetryContextCache.
  • canRetry
    Decide whether to proceed with the ongoing retry attempt. This method is called before the RetryCall
  • close
    Clean up the cache if necessary and close the context provided (if the flag indicates that processin
  • handleRetryExhausted
    Actions to take after final attempt has failed. If there is state clean up the cache. If there is a
  • registerThrowable
  • setThrowLastExceptionOnExhausted
  • registerThrowable,
  • setThrowLastExceptionOnExhausted,
  • doCloseInterceptors,
  • doExecute,
  • doOnErrorInterceptors,
  • doOpenInterceptors,
  • doOpenInternal,
  • registerContext,
  • rethrow

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • putExtra (Intent)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now