Uses of Interface
org.springframework.batch.repeat.RepeatContext
Packages that use RepeatContext
Package
Description
Implementation of the contexts for each of the custom bean scopes in Spring Batch (Job
and Step).
Specific implementations of step concerns for item-oriented approach.
Infrastructure implementations of repeat concerns.
Infrastructure implementations of repeat callback concerns.
Infrastructure implementations of repeat context concerns.
Infrastructure implementations of repeat exception handler concerns.
Infrastructure implementations of repeat interceptor concerns.
Infrastructure implementations of repeat policy concerns.
Infrastructure implementations of repeat support concerns.
-
Uses of RepeatContext in org.springframework.batch.core.resource
Methods in org.springframework.batch.core.resource that return RepeatContextModifier and TypeMethodDescriptionStepExecutionSimpleCompletionPolicy.start(RepeatContext parent) Methods in org.springframework.batch.core.resource with parameters of type RepeatContextModifier and TypeMethodDescriptionbooleanStepExecutionSimpleCompletionPolicy.isComplete(RepeatContext context) booleanStepExecutionSimpleCompletionPolicy.isComplete(RepeatContext context, RepeatStatus result) StepExecutionSimpleCompletionPolicy.start(RepeatContext parent) voidStepExecutionSimpleCompletionPolicy.update(RepeatContext context) -
Uses of RepeatContext in org.springframework.batch.core.scope.context
Methods in org.springframework.batch.core.scope.context with parameters of type RepeatContextModifier and TypeMethodDescriptionabstract RepeatStatusStepContextRepeatCallback.doInChunkContext(RepeatContext context, ChunkContext chunkContext) Do the work required for this chunk of the step.StepContextRepeatCallback.doInIteration(RepeatContext context) Manage theStepContextlifecycle. -
Uses of RepeatContext in org.springframework.batch.core.step.item
Methods in org.springframework.batch.core.step.item with parameters of type RepeatContextModifier and TypeMethodDescriptionvoidSimpleRetryExceptionHandler.handleException(RepeatContext context, Throwable throwable) Check if the exception is going to be retried, and veto the handling if it is. -
Uses of RepeatContext in org.springframework.batch.repeat
Methods in org.springframework.batch.repeat that return RepeatContextModifier and TypeMethodDescriptionRepeatContext.getParent()If batches are nested, then the inner batch will be created with the outer one as a parent.CompletionPolicy.start(RepeatContext parent) Create a new context for the execution of a batch.Methods in org.springframework.batch.repeat with parameters of type RepeatContextModifier and TypeMethodDescriptiondefault voidRepeatListener.after(RepeatContext context, RepeatStatus result) Called by the framework after each item has been processed, unless the item processing results in an exception.default voidRepeatListener.before(RepeatContext context) Called by the framework before each batch item.default voidRepeatListener.close(RepeatContext context) Called once at the end of a complete batch, after normal or abnormal completion (i.e.RepeatCallback.doInIteration(RepeatContext context) Implementations return true if they can continue processing - e.g.booleanCompletionPolicy.isComplete(RepeatContext context) Allow policy to signal completion according to internal state, without having to wait for the callback to complete.booleanCompletionPolicy.isComplete(RepeatContext context, RepeatStatus result) Determine whether a batch is complete given the latest result from the callback.default voidRepeatListener.onError(RepeatContext context, Throwable e) Called when a repeat callback fails by throwing an exception.default voidRepeatListener.open(RepeatContext context) Called once at the start of a complete batch, before any items are processed.CompletionPolicy.start(RepeatContext parent) Create a new context for the execution of a batch.voidCompletionPolicy.update(RepeatContext context) Give implementations the opportunity to update the state of the current batch. -
Uses of RepeatContext in org.springframework.batch.repeat.callback
Methods in org.springframework.batch.repeat.callback with parameters of type RepeatContextModifier and TypeMethodDescriptionNestedRepeatCallback.doInIteration(RepeatContext context) Simply calls template.execute(callback). -
Uses of RepeatContext in org.springframework.batch.repeat.context
Classes in org.springframework.batch.repeat.context that implement RepeatContextMethods in org.springframework.batch.repeat.context that return RepeatContextConstructors in org.springframework.batch.repeat.context with parameters of type RepeatContextModifierConstructorDescriptionRepeatContextCounter(RepeatContext context, String countKey) Convenience constructor with useParent=false.RepeatContextCounter(RepeatContext context, String countKey, boolean useParent) Construct a newRepeatContextCounter.RepeatContextSupport(RepeatContext parent) Constructor forRepeatContextSupport. -
Uses of RepeatContext in org.springframework.batch.repeat.exception
Methods in org.springframework.batch.repeat.exception with parameters of type RepeatContextModifier and TypeMethodDescriptionvoidCompositeExceptionHandler.handleException(RepeatContext context, Throwable throwable) Iterate over the handlers delegating the call to each in turn.voidDefaultExceptionHandler.handleException(RepeatContext context, Throwable throwable) Re-throw the throwable.voidExceptionHandler.handleException(RepeatContext context, Throwable throwable) Deal with a Throwable during a batch - decide whether it should be re-thrown in the first place.voidLogOrRethrowExceptionHandler.handleException(RepeatContext context, Throwable throwable) Classify the throwables and decide whether to rethrow based on the result.voidRethrowOnThresholdExceptionHandler.handleException(RepeatContext context, Throwable throwable) Classify the throwables and decide whether to re-throw based on the result.voidSimpleLimitExceptionHandler.handleException(RepeatContext context, Throwable throwable) Rethrows only if the limit is breached for this context on the exception type specified. -
Uses of RepeatContext in org.springframework.batch.repeat.listener
Methods in org.springframework.batch.repeat.listener with parameters of type RepeatContextModifier and TypeMethodDescriptionvoidCompositeRepeatListener.after(RepeatContext context, RepeatStatus result) voidRepeatListenerSupport.after(RepeatContext context, RepeatStatus result) Deprecated.voidCompositeRepeatListener.before(RepeatContext context) voidRepeatListenerSupport.before(RepeatContext context) Deprecated.voidCompositeRepeatListener.close(RepeatContext context) voidRepeatListenerSupport.close(RepeatContext context) Deprecated.voidCompositeRepeatListener.onError(RepeatContext context, Throwable e) voidRepeatListenerSupport.onError(RepeatContext context, Throwable e) Deprecated.voidCompositeRepeatListener.open(RepeatContext context) voidRepeatListenerSupport.open(RepeatContext context) Deprecated. -
Uses of RepeatContext in org.springframework.batch.repeat.policy
Classes in org.springframework.batch.repeat.policy that implement RepeatContextModifier and TypeClassDescriptionprotected classComposite context that knows about the policies and contexts is was created with.protected classprotected classprotected classMethods in org.springframework.batch.repeat.policy that return RepeatContextModifier and TypeMethodDescriptionCompletionPolicySupport.start(RepeatContext context) Build a newRepeatContextSupportand return it.CompositeCompletionPolicy.start(RepeatContext context) Create a new composite context from all the available policies.CountingCompletionPolicy.start(RepeatContext parent) SimpleCompletionPolicy.start(RepeatContext context) Reset the counter.TimeoutTerminationPolicy.start(RepeatContext context) Start the clock on the timeout.Methods in org.springframework.batch.repeat.policy with parameters of type RepeatContextModifier and TypeMethodDescriptionprotected intCountingCompletionPolicy.doUpdate(RepeatContext context) Extension point for subclasses.protected abstract intCountingCompletionPolicy.getCount(RepeatContext context) Extension point for subclasses.booleanCompletionPolicySupport.isComplete(RepeatContext context) Always true.booleanCompletionPolicySupport.isComplete(RepeatContext context, RepeatStatus result) If exit status is not continuable returntrue, otherwise delegate toCompletionPolicySupport.isComplete(RepeatContext).booleanCompositeCompletionPolicy.isComplete(RepeatContext context) This policy is complete if any of the composed policies is complete.booleanCompositeCompletionPolicy.isComplete(RepeatContext context, RepeatStatus result) This policy is complete if any of the composed policies is complete.final booleanCountingCompletionPolicy.isComplete(RepeatContext context) booleanDefaultResultCompletionPolicy.isComplete(RepeatContext context) Always false.booleanDefaultResultCompletionPolicy.isComplete(RepeatContext context, RepeatStatus result) True if the result is null, or aRepeatStatusindicating completion.booleanSimpleCompletionPolicy.isComplete(RepeatContext context) Terminate if the chunk size has been reached.booleanSimpleCompletionPolicy.isComplete(RepeatContext context, RepeatStatus result) Terminate if the chunk size has been reached, or the result is null.booleanTimeoutTerminationPolicy.isComplete(RepeatContext context) Check the timeout and complete gracefully if it has expires.CompletionPolicySupport.start(RepeatContext context) Build a newRepeatContextSupportand return it.CompositeCompletionPolicy.start(RepeatContext context) Create a new composite context from all the available policies.CountingCompletionPolicy.start(RepeatContext parent) SimpleCompletionPolicy.start(RepeatContext context) Reset the counter.TimeoutTerminationPolicy.start(RepeatContext context) Start the clock on the timeout.voidCompletionPolicySupport.update(RepeatContext context) Increment the context so the counter is up to date.voidCompositeCompletionPolicy.update(RepeatContext context) Update all the composed contexts, and also increment the parent context.final voidCountingCompletionPolicy.update(RepeatContext context) voidSimpleCompletionPolicy.update(RepeatContext context) Increment the counter in the context.Constructors in org.springframework.batch.repeat.policy with parameters of type RepeatContextModifierConstructorDescriptionCompositeBatchContext(RepeatContext context, List<RepeatContext> contexts) CountingBatchContext(RepeatContext parent) SimpleTerminationContext(RepeatContext context) TimeoutBatchContext(RepeatContext context) Constructor parameters in org.springframework.batch.repeat.policy with type arguments of type RepeatContextModifierConstructorDescriptionCompositeBatchContext(RepeatContext context, List<RepeatContext> contexts) -
Uses of RepeatContext in org.springframework.batch.repeat.support
Methods in org.springframework.batch.repeat.support that return RepeatContextModifier and TypeMethodDescriptionstatic RepeatContextRepeatSynchronizationManager.clear()Clear the current context at the end of a batch - should only be used byRepeatOperationsimplementations.static RepeatContextRepeatSynchronizationManager.getContext()Getter for the current context.static RepeatContextRepeatSynchronizationManager.register(RepeatContext context) Method for registering a context - should only be used byRepeatOperationsimplementations to ensure thatRepeatSynchronizationManager.getContext()always returns the correct value.protected RepeatContextRepeatTemplate.start()Delegate to theCompletionPolicy.Methods in org.springframework.batch.repeat.support with parameters of type RepeatContextModifier and TypeMethodDescriptionprotected RepeatInternalStateRepeatTemplate.createInternalState(RepeatContext context) Create an internal state object that is used to store data needed internally in the scope of an iteration.protected RepeatInternalStateTaskExecutorRepeatTemplate.createInternalState(RepeatContext context) protected voidRepeatTemplate.executeAfterInterceptors(RepeatContext context, RepeatStatus value) Convenience method to execute after interceptors on a callback result.protected RepeatStatusRepeatTemplate.getNextResult(RepeatContext context, RepeatCallback callback, RepeatInternalState state) Get the next completed result, possibly executing several callbacks until one finally finishes.protected RepeatStatusTaskExecutorRepeatTemplate.getNextResult(RepeatContext context, RepeatCallback callback, RepeatInternalState state) Use theTaskExecutorRepeatTemplate.setTaskExecutor(TaskExecutor)to generate a result.protected booleanRepeatTemplate.isComplete(RepeatContext context) Delegate toCompletionPolicy.protected booleanRepeatTemplate.isComplete(RepeatContext context, RepeatStatus result) Delegate to theCompletionPolicy.static RepeatContextRepeatSynchronizationManager.register(RepeatContext context) Method for registering a context - should only be used byRepeatOperationsimplementations to ensure thatRepeatSynchronizationManager.getContext()always returns the correct value.protected voidRepeatTemplate.update(RepeatContext context) Delegate to theCompletionPolicy.