Interface GitBulkContentCommandFactory

All Superinterfaces:
com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory

public interface GitBulkContentCommandFactory extends com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
Overrides methods from the standard PluginBulkContentCommandFactory interface and returns GitCommand instances instead of simple Command or AsyncCommand instances. This allows commands created by this factory to be used synchronously or asynchronously at the caller's discretion, rather than fixing execution to one approach or the other.

This interface does not add any commands to the standard interface. It only covariantly adjusts their return types.

Since:
4.2
  • Method Summary

    Modifier and Type
    Method
    Description
    commits(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.bulk.BulkCommitsCommandParameters parameters, com.atlassian.bitbucket.scm.bulk.BulkCommitCallback callback)
     
    contents(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.bulk.BulkContentCommandParameters parameters, com.atlassian.bitbucket.scm.bulk.BulkContentCallback callback)
     
    traverseCommits(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.bulk.BulkTraverseCommitsCommandParameters parameters, com.atlassian.bitbucket.scm.bulk.BulkTraversalCallback callback)
     
  • Method Details

    • commits

      @Nonnull GitCommand<Void> commits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkCommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkCommitCallback callback)
      Specified by:
      commits in interface com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
      Parameters:
      repository - one of the repositories for which commits should be streamed
      parameters - parameters describing the commits to stream
      callback - a callback to receive the requested commits
      Returns:
      a command which, when called, will stream commits to the provided callback
      Since:
      5.8
    • contents

      @Nonnull GitCommand<Void> contents(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkContentCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkContentCallback callback)
      Specified by:
      contents in interface com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
      Parameters:
      repository - the repository to get contents from
      parameters - to specify where to get contents from
      callback - to process resulting content
      Returns:
      the command
    • traverseCommits

      @Nonnull GitCommand<Void> traverseCommits(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkTraverseCommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.bulk.BulkTraversalCallback callback)
      Specified by:
      traverseCommits in interface com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
      Parameters:
      repository - one of the repositories for which commits should be streamed
      parameters - parameters describing the commits to include in the traversal
      callback - a callback to receive the requested commits
      Returns:
      a command which, when called, will stream commits, topologically ordered, to the provided callback
      Since:
      5.11