public interface GitMirrorCommandFactory
extends com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory
PluginMirrorCommandFactory
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> |
synchronize(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.mirror.MirrorSyncCommandParameters parameters,
com.atlassian.bitbucket.scm.mirror.MirrorSyncCallback callback) |
GitCommand<Void> |
updateRefs(com.atlassian.bitbucket.repository.Repository repository,
com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters) |
@Nonnull GitCommand<Void> synchronize(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorSyncCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorSyncCallback callback)
synchronize
in interface com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory
@Nonnull GitCommand<Void> updateRefs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters)
updateRefs
in interface com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory
Copyright © 2019 Atlassian. All rights reserved.