Tabnine Logo
RepeatTemplate.update
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: spring-projects/spring-batch

/**
 * Get the next completed result, possibly executing several callbacks until
 * one finally finishes. Normally a subclass would have to override both
 * this method and {@link #createInternalState(RepeatContext)} because the
 * implementation of this method would rely on the details of the internal
 * state.
 * 
 * @param context current BatchContext.
 * @param callback the callback to execute.
 * @param state maintained by the implementation.
 * @return a finished result.
 * @throws Throwable any Throwable emitted during the iteration
 * 
 * @see #isComplete(RepeatContext)
 * @see #createInternalState(RepeatContext)
 */
protected RepeatStatus getNextResult(RepeatContext context, RepeatCallback callback, RepeatInternalState state)
    throws Throwable {
  update(context);
  if (logger.isDebugEnabled()) {
    logger.debug("Repeat operation about to start at count=" + context.getStartedCount());
  }
  return callback.doInIteration(context);
}
origin: apache/servicemix-bundles

/**
 * Get the next completed result, possibly executing several callbacks until
 * one finally finishes. Normally a subclass would have to override both
 * this method and {@link #createInternalState(RepeatContext)} because the
 * implementation of this method would rely on the details of the internal
 * state.
 * 
 * @param context current BatchContext.
 * @param callback the callback to execute.
 * @param state maintained by the implementation.
 * @return a finished result.
 * @throws Throwable any Throwable emitted during the iteration
 * 
 * @see #isComplete(RepeatContext)
 * @see #createInternalState(RepeatContext)
 */
protected RepeatStatus getNextResult(RepeatContext context, RepeatCallback callback, RepeatInternalState state)
    throws Throwable {
  update(context);
  if (logger.isDebugEnabled()) {
    logger.debug("Repeat operation about to start at count=" + context.getStartedCount());
  }
  return callback.doInIteration(context);
}
org.springframework.batch.repeat.supportRepeatTemplateupdate

Javadoc

Delegate to the CompletionPolicy.

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.
  • executeInternal
    Internal convenience method to loop over interceptors and batch callbacks.
  • 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.
  • isMarkedComplete,
  • rethrow,
  • start,
  • unwrapIfRethrown,
  • waitForResults,
  • registerListener,
  • setListeners

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • From CI to AI: The AI layer in your organization
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