br.com.objectos.git
Interface GitCommand<V>

Type Parameters:
V - the type of the result of this command
All Known Implementing Classes:
MaterializeCommand, StageGitCommand

public interface GitCommand<V>

Represents a result producing high-level (porcelain) Git command. More precisely, it acts as a factory of asynchronous git computations.

Instances of this interface are intended to be executed by a GitService instance.

Programmers are encouraged to use one of the abstract classes provided by this package instead of implementing this interface directly.

Since:
3

Method Summary
 Computation<V> submitAsync(GitCommandExecutor executor, CpuWorker cpuWorker)
          Returns a possibly new and possibly asynchronous git computation representing the pending result of this command.
 

Method Detail

submitAsync

Computation<V> submitAsync(GitCommandExecutor executor,
                           CpuWorker cpuWorker)
Returns a possibly new and possibly asynchronous git computation representing the pending result of this command.

Please

Parameters:
executor - the executor providing low-level git tasks
cpuWorker - the cpu worker to execute the command
Returns:
a computation object representing the pending result of this command


Copyright © 2020–2022 Objectos Software LTDA. All rights reserved.