Class FlushOrdered

  • All Implemented Interfaces:
    FlushProcess

    public class FlushOrdered
    extends java.lang.Object
    implements FlushProcess
    Flush process that processes the objects in the order that they became dirty. If a datastore uses referential integrity this is typically the best way of maintaining a valid update process.
    • Constructor Detail

      • FlushOrdered

        public FlushOrdered()
    • Method Detail

      • execute

        public java.util.List<NucleusOptimisticException> execute​(ExecutionContext ec,
                                                                  java.util.Collection<DNStateManager> primaryDNs,
                                                                  java.util.Collection<DNStateManager> secondaryDNs,
                                                                  OperationQueue opQueue)
        Description copied from interface: FlushProcess
        Execute the flush.
        Specified by:
        execute in interface FlushProcess
        Parameters:
        ec - ExecutionContext
        primaryDNs - StateManagers that were made dirty by direct API calls. Cleared during this method
        secondaryDNs - StateManagers that were made dirty by reachability. Cleared during this method
        opQueue - Queue of operations
        Returns:
        Any optimistic exceptions during the deletes/inserts/updates