Interface GitMirrorCommandFactory

All Superinterfaces:
com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory

public interface GitMirrorCommandFactory extends com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory
Overrides methods from the standard 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.

Since:
4.1
  • Method Summary

    Modifier and Type
    Method
    Description
    synchronize(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.mirror.MirrorSyncCommandParameters parameters, com.atlassian.bitbucket.scm.mirror.MirrorSyncCallback callback)
    updateRefs(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters)
  • Method Details

    • synchronize

      @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)
      Specified by:
      synchronize in interface com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory
    • updateRefs

      @Nonnull GitCommand<Void> updateRefs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters)
      Specified by:
      updateRefs in interface com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory
      Since:
      4.2