public interface CompletionPolicy
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isComplete(RepeatContext context)Allow policy to signal completion according to internal state, without
 having to wait for the callback to complete. | 
| boolean | isComplete(RepeatContext context,
          RepeatStatus result)Determine whether a batch is complete given the latest result from the
 callback. | 
| RepeatContext | start(RepeatContext parent)Create a new context for the execution of a batch. | 
| void | update(RepeatContext context)Give implementations the opportunity to update the state of the current
 batch. | 
boolean isComplete(RepeatContext context, RepeatStatus result)
isComplete(RepeatContext) should also (but not necessarily vice
 versa, since the answer here depends on the result).context - the current batch context.result - the result of the latest batch item processing.isComplete(RepeatContext)boolean isComplete(RepeatContext context)
context - the current batch context.RepeatContext start(RepeatContext parent)
RepeatContext to store state in its attributes.parent - the current context if one is already in progress.void update(RepeatContext context)
context - the value returned by start.Copyright © 2014 Pivotal. All rights reserved.