public interface

GitMirrorCommandFactory

implements PluginMirrorCommandFactory
com.atlassian.bitbucket.scm.git.command.GitMirrorCommandFactory

Class Overview

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.

Summary

Public Methods
@Nonnull GitCommand<Void> synchronize(Repository repository, MirrorSyncCommandParameters parameters, MirrorSyncCallback callback)
@Nonnull GitCommand<Void> updateRefs(Repository repository, MirrorUpdateRefsCommandParameters parameters)
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.scm.mirror.PluginMirrorCommandFactory

Public Methods

@Nonnull public GitCommand<Void> synchronize (Repository repository, MirrorSyncCommandParameters parameters, MirrorSyncCallback callback)

@Nonnull public GitCommand<Void> updateRefs (Repository repository, MirrorUpdateRefsCommandParameters parameters)