public final class RepeatSynchronizationManager extends Object
RepeatCallback can always use the context it is passed by the
 enclosing RepeatOperations. But occasionally it might be helpful to
 have lower level access to the ongoing RepeatContext so we provide a
 global accessor here. The mutator methods (clear() and
 register(RepeatContext) should not be used except internally by
 RepeatOperations implementations.| Modifier and Type | Method and Description | 
|---|---|
| static RepeatContext | clear()Clear the current context at the end of a batch - should only be used by
  RepeatOperationsimplementations. | 
| static RepeatContext | getContext()Getter for the current context. | 
| static RepeatContext | register(RepeatContext context)Method for registering a context - should only be used by
  RepeatOperationsimplementations to ensure thatgetContext()always returns the correct value. | 
| static void | setAncestorsCompleteOnly()Set current session and all ancestors (via parent) to complete., | 
| static void | setCompleteOnly()Convenience method to set the current repeat operation to complete if it
 exists. | 
public static RepeatContext getContext()
RepeatOperations.RepeatContext or null if there is none (if we
 are not in a batch).public static void setCompleteOnly()
public static RepeatContext register(RepeatContext context)
RepeatOperations implementations to ensure that
 getContext() always returns the correct value.context - a new context at the start of a batch.public static RepeatContext clear()
RepeatOperations implementations.public static void setAncestorsCompleteOnly()
Copyright © 2014 Pivotal. All rights reserved.