Codota Logo
RepeatTemplate.executeInternal
Code IndexAdd Codota to your IDE (free)

How to use
executeInternal
method
in
org.springframework.batch.repeat.support.RepeatTemplate

Best Java code snippets using org.springframework.batch.repeat.support.RepeatTemplate.executeInternal (Showing top 2 results out of 315)

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

/**
 * Execute the batch callback until the completion policy decides that we
 * are finished. Wait for the whole batch to finish before returning even if
 * the task executor is asynchronous.
 * 
 * @see org.springframework.batch.repeat.RepeatOperations#iterate(org.springframework.batch.repeat.RepeatCallback)
 */
@Override
public RepeatStatus iterate(RepeatCallback callback) {
  RepeatContext outer = RepeatSynchronizationManager.getContext();
  RepeatStatus result = RepeatStatus.CONTINUABLE;
  try {
    // This works with an asynchronous TaskExecutor: the
    // interceptors have to wait for the child processes.
    result = executeInternal(callback);
  }
  finally {
    RepeatSynchronizationManager.clear();
    if (outer != null) {
      RepeatSynchronizationManager.register(outer);
    }
  }
  return result;
}
origin: apache/servicemix-bundles

/**
 * Execute the batch callback until the completion policy decides that we
 * are finished. Wait for the whole batch to finish before returning even if
 * the task executor is asynchronous.
 * 
 * @see org.springframework.batch.repeat.RepeatOperations#iterate(org.springframework.batch.repeat.RepeatCallback)
 */
@Override
public RepeatStatus iterate(RepeatCallback callback) {
  RepeatContext outer = RepeatSynchronizationManager.getContext();
  RepeatStatus result = RepeatStatus.CONTINUABLE;
  try {
    // This works with an asynchronous TaskExecutor: the
    // interceptors have to wait for the child processes.
    result = executeInternal(callback);
  }
  finally {
    RepeatSynchronizationManager.clear();
    if (outer != null) {
      RepeatSynchronizationManager.register(outer);
    }
  }
  return result;
}
org.springframework.batch.repeat.supportRepeatTemplateexecuteInternal

Javadoc

Internal convenience method to loop over interceptors and batch callbacks.

Popular methods of RepeatTemplate

  • <init>
  • setCompletionPolicy
  • setExceptionHandler
  • iterate
  • createInternalState
    Create an internal state object that is used to store data needed internally in the scope of an iter
  • doHandle
  • executeAfterInterceptors
    Convenience method to execute after interceptors on a callback result.
  • getNextResult
    Get the next completed result, possibly executing several callbacks until one finally finishes. Norm
  • isComplete
    Delegate to the CompletionPolicy.
  • isMarkedComplete
  • rethrow
    Re-throws the original throwable if it is unchecked, wraps checked exceptions into RepeatException.
  • start
    Delegate to the CompletionPolicy.
  • rethrow,
  • start,
  • unwrapIfRethrown,
  • update,
  • waitForResults,
  • registerListener,
  • setListeners

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Reference (javax.naming)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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