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

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

Best Java code snippets using org.springframework.retry.support.RetryTemplate.registerContext (Showing top 4 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-retry

protected void registerThrowable(RetryPolicy retryPolicy, RetryState state,
    RetryContext context, Throwable e) {
  retryPolicy.registerThrowable(context, e);
  registerContext(context, state);
}
origin: spring-projects/spring-retry

private RetryContext doOpenInternal(RetryPolicy retryPolicy, RetryState state) {
  RetryContext context = retryPolicy.open(RetrySynchronizationManager.getContext());
  if (state != null) {
    context.setAttribute(RetryContext.STATE_KEY, state.getKey());
  }
  if (context.hasAttribute(GLOBAL_STATE)) {
    registerContext(context, state);
  }
  return context;
}
origin: org.springframework.retry/spring-retry

protected void registerThrowable(RetryPolicy retryPolicy, RetryState state,
    RetryContext context, Throwable e) {
  retryPolicy.registerThrowable(context, e);
  registerContext(context, state);
}
origin: org.springframework.retry/spring-retry

private RetryContext doOpenInternal(RetryPolicy retryPolicy, RetryState state) {
  RetryContext context = retryPolicy.open(RetrySynchronizationManager.getContext());
  if (state != null) {
    context.setAttribute(RetryContext.STATE_KEY, state.getKey());
  }
  if (context.hasAttribute(GLOBAL_STATE)) {
    registerContext(context, state);
  }
  return context;
}
org.springframework.retry.supportRetryTemplateregisterContext

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
  • open
    Delegate to the RetryPolicy having checked in the cache for an existing value if the state is not nu
  • registerThrowable
  • open,
  • registerThrowable,
  • setThrowLastExceptionOnExhausted,
  • doCloseInterceptors,
  • doExecute,
  • doOnErrorInterceptors,
  • doOpenInterceptors,
  • doOpenInternal,
  • rethrow

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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