Interface PageNameConflictResolver

    • Method Detail

      • couldProvideNewName

        boolean couldProvideNewName()
        Indicates that this always provides a new name during the copy process, even for non-conflicting pages
        Returns:
        true if yes otherwise false
      • getMaxRetryNumber

        int getMaxRetryNumber()
        This is maximum number to retry saving page. In case, there is duplication still happen even we already try to rename the page
        Returns:
        max retry to save page with new name
      • resolveConflict

        String resolveConflict​(int currentRetryNumber,
                               String originalName)
        Implements the name conflict resolution strategy
        Parameters:
        originalName -
        Returns:
        new name which could solve conflict