Class LowerBoundModificationProcessor


  • public class LowerBoundModificationProcessor
    extends VcsModificationProcessor
    Processor which returns true only for modifications with id strictly greater than its lower bound.
    • Constructor Detail

      • LowerBoundModificationProcessor

        public LowerBoundModificationProcessor​(long lowerBound)
    • Method Detail

      • getLimit

        @Nullable
        public Integer getLimit()
        Specified by:
        getLimit in class VcsModificationProcessor
        Returns:
        the limit for changes this processor uses or null if processor doesn't limit changes or doesn't limit them by the amount (e.g. limit by date).
      • processAttachedModification

        public boolean processAttachedModification​(@NotNull
                                                   SVcsModification vcsModification)
        Description copied from class: VcsModificationProcessor
        Processes a single SVcsModification. This method is called only for changes attached to a build configuration where the changes calculation is performed.
        Specified by:
        processAttachedModification in class VcsModificationProcessor
        Parameters:
        vcsModification - VCS modification to process.
        Returns:
        false if no further processing needed.
      • processModification

        public boolean processModification​(@NotNull
                                           SVcsModification vcsModification)
        Description copied from class: VcsModificationProcessor
        This method is called for every SVcsModification visited during the changes collection process.
        Overrides:
        processModification in class VcsModificationProcessor
        Parameters:
        vcsModification - visited VCS modification
        Returns:
        false if no further processing needed.
      • processUnloadedModification

        public boolean processUnloadedModification​(long modId,
                                                   long vcsRootId)
        Description copied from class: VcsModificationProcessor
        This method is called when we've reached a VCS modification which is not loaded into the in-memory cache. For instance, this can happen if the VCS modification is too old and was already unloaded from memory.
        Overrides:
        processUnloadedModification in class VcsModificationProcessor
        Parameters:
        modId - id of the unloaded modification
        vcsRootId - id of the VCS root instance
        Returns:
        true if processing should be continued and false otherwise
      • getLowerBound

        public long getLowerBound()
      • changesCanBeCached

        public boolean changesCanBeCached()
        Overrides:
        changesCanBeCached in class VcsModificationProcessor
        Returns:
        true if changes calculated with help of this processor can be cached and false otherwise Note: if false is returned by this method then existing cached changes won't be used when changes are computed with help of this processor