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 TypeMethodDescriptioncommits(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:
commitsin interfacecom.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory- Parameters:
repository- one of the repositories for which commits should be streamedparameters- parameters describing the commits to streamcallback- 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:
contentsin interfacecom.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory- Parameters:
repository- the repository to get contents fromparameters- to specify where to get contents fromcallback- 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:
traverseCommitsin interfacecom.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory- Parameters:
repository- one of the repositories for which commits should be streamedparameters- parameters describing the commits to include in the traversalcallback- 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
-