Interface ChangesConsumer


  • @SystemProvided
    public interface ChangesConsumer
    Common system-provided interface used to consume detected changes.
    Since:
    8.1
    • Method Detail

      • consumeChange

        void consumeChange​(@NotNull
                           ChangeData change)
                    throws VcsException
        Callback method to report detected ChangeData objects to the system.
        VcsException could be thrown in the case the system failed to process submitted ChangeData. VCS Plugin implementation should re-throw the exception as is and carefully close all underlying resources.
        There are following assumptions held:
        • All possible (and impossible) exceptions MUST be re-thrown in plugin code
        • Callback method should be called exactly from the SINGLE thread
        • It is only allowed to call the method within VCS Plugin API call
        Parameters:
        change - detected change
        Throws:
        VcsException
        Since:
        8.1