Tabnine Logo
RetryTemplate.close
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-batch

@Override
protected void close(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded) {
  BatchRetryState batchState = (BatchRetryState) state;
  BatchRetryContext batchContext = (BatchRetryContext) context;
  Iterator<RetryContext> contextIterator = batchContext.contexts.iterator();
  for (RetryState retryState : batchState.keys) {
    RetryContext nextContext = contextIterator.next();
    super.close(retryPolicy, nextContext, retryState, succeeded);
  }
}
origin: spring-projects/spring-retry

close(retryPolicy, context, state, lastException == null || exhausted);
doCloseInterceptors(retryCallback, context, lastException);
RetrySynchronizationManager.clear();
origin: org.springframework.batch/spring-batch-core

@Override
protected void close(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded) {
  BatchRetryState batchState = (BatchRetryState) state;
  BatchRetryContext batchContext = (BatchRetryContext) context;
  Iterator<RetryContext> contextIterator = batchContext.contexts.iterator();
  for (RetryState retryState : batchState.keys) {
    RetryContext nextContext = contextIterator.next();
    super.close(retryPolicy, nextContext, retryState, succeeded);
  }
}
origin: apache/servicemix-bundles

@Override
protected void close(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded) {
  BatchRetryState batchState = (BatchRetryState) state;
  BatchRetryContext batchContext = (BatchRetryContext) context;
  Iterator<RetryContext> contextIterator = batchContext.contexts.iterator();
  for (RetryState retryState : batchState.keys) {
    RetryContext nextContext = contextIterator.next();
    super.close(retryPolicy, nextContext, retryState, succeeded);
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
protected void close(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded) {
  BatchRetryState batchState = (BatchRetryState) state;
  BatchRetryContext batchContext = (BatchRetryContext) context;
  Iterator<RetryContext> contextIterator = batchContext.contexts.iterator();
  for (RetryState retryState : batchState.keys) {
    RetryContext nextContext = contextIterator.next();
    super.close(retryPolicy, nextContext, retryState, succeeded);
  }
}
origin: org.springframework.retry/spring-retry

close(retryPolicy, context, state, lastException == null || exhausted);
doCloseInterceptors(retryCallback, context, lastException);
RetrySynchronizationManager.clear();
org.springframework.retry.supportRetryTemplateclose

Javadoc

Clean up the cache if necessary and close the context provided (if the flag indicates that processing was successful).

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
  • 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
  • setThrowLastExceptionOnExhausted
  • registerThrowable,
  • setThrowLastExceptionOnExhausted,
  • doCloseInterceptors,
  • doExecute,
  • doOnErrorInterceptors,
  • doOpenInterceptors,
  • doOpenInternal,
  • registerContext,
  • rethrow

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • Top 12 Jupyter Notebook extensions
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