public interface GitBulkContentCommandFactory
extends com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
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.
Modifier and Type | Method and Description |
---|---|
GitCommand<Void> |
commits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.bulk.BulkCommitsCommandParameters parameters,
com.atlassian.bitbucket.scm.bulk.BulkCommitCallback callback) |
GitCommand<Void> |
contents(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.bulk.BulkContentCommandParameters parameters,
com.atlassian.bitbucket.scm.bulk.BulkContentCallback callback) |
GitCommand<Void> |
traverseCommits(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.bulk.BulkTraverseCommitsCommandParameters parameters,
com.atlassian.bitbucket.scm.bulk.BulkTraversalCallback callback) |
@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)
commits
in interface com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
repository
- one of the repositories for which commits should be streamedparameters
- parameters describing the commits to streamcallback
- a callback to receive the requested commitscalled
, will stream commits to the provided callback@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)
contents
in interface com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
repository
- the repository to get contents fromparameters
- to specify where to get contents fromcallback
- to process resulting content@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)
traverseCommits
in interface com.atlassian.bitbucket.scm.bulk.PluginBulkContentCommandFactory
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 commitscalled
, will stream commits, topologically ordered, to the
provided callbackCopyright © 2019 Atlassian. All rights reserved.