Package | Description |
---|---|
org.springframework.batch.repeat |
Infrastructure implementations of repeat concerns.
|
org.springframework.batch.repeat.callback |
Infrastructure implementations of repeat callback concerns.
|
org.springframework.batch.repeat.listener |
Infrastructure implementations of repeat interceptor concerns.
|
org.springframework.batch.repeat.policy |
Infrastructure implementations of repeat policy concerns.
|
org.springframework.batch.repeat.support |
Infrastructure implementations of repeat support concerns.
|
Modifier and Type | Method and Description |
---|---|
RepeatStatus |
RepeatStatus.and(boolean value) |
static RepeatStatus |
RepeatStatus.continueIf(boolean continuable) |
RepeatStatus |
RepeatCallback.doInIteration(RepeatContext context)
Implementations return true if they can continue processing - e.g.
|
RepeatStatus |
RepeatOperations.iterate(RepeatCallback callback)
Execute the callback repeatedly, until a decision can be made to
complete.
|
static RepeatStatus |
RepeatStatus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RepeatStatus[] |
RepeatStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
RepeatListener.after(RepeatContext context,
RepeatStatus result)
Called by the framework after each item has been processed, unless the
item processing results in an exception.
|
boolean |
CompletionPolicy.isComplete(RepeatContext context,
RepeatStatus result)
Determine whether a batch is complete given the latest result from the
callback.
|
Modifier and Type | Method and Description |
---|---|
RepeatStatus |
NestedRepeatCallback.doInIteration(RepeatContext context)
Simply calls template.execute(callback).
|
Modifier and Type | Method and Description |
---|---|
void |
RepeatListenerSupport.after(RepeatContext context,
RepeatStatus result) |
void |
CompositeRepeatListener.after(RepeatContext context,
RepeatStatus result) |
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleCompletionPolicy.isComplete(RepeatContext context,
RepeatStatus result)
Terminate if the chunk size has been reached, or the result is null.
|
boolean |
DefaultResultCompletionPolicy.isComplete(RepeatContext context,
RepeatStatus result)
True if the result is null, or a
RepeatStatus indicating
completion. |
boolean |
CompositeCompletionPolicy.isComplete(RepeatContext context,
RepeatStatus result)
This policy is complete if any of the composed policies is complete.
|
boolean |
CompletionPolicySupport.isComplete(RepeatContext context,
RepeatStatus result)
If exit status is not continuable return
true , otherwise
delegate to CompletionPolicySupport.isComplete(RepeatContext) . |
Modifier and Type | Method and Description |
---|---|
protected RepeatStatus |
TaskExecutorRepeatTemplate.getNextResult(RepeatContext context,
RepeatCallback callback,
RepeatInternalState state)
Use the
TaskExecutorRepeatTemplate.setTaskExecutor(TaskExecutor) to generate a result. |
protected RepeatStatus |
RepeatTemplate.getNextResult(RepeatContext context,
RepeatCallback callback,
RepeatInternalState state)
Get the next completed result, possibly executing several callbacks until
one finally finishes.
|
RepeatStatus |
RepeatTemplate.iterate(RepeatCallback callback)
Execute the batch callback until the completion policy decides that we
are finished.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
RepeatTemplate.canContinue(RepeatStatus value)
Check return value from batch operation.
|
protected void |
RepeatTemplate.executeAfterInterceptors(RepeatContext context,
RepeatStatus value)
Convenience method to execute after interceptors on a callback result.
|
protected boolean |
RepeatTemplate.isComplete(RepeatContext context,
RepeatStatus result)
Delegate to the
CompletionPolicy . |
Copyright © 2014. All Rights Reserved.