IRunUtil.IRunnableResultIRunUtil.IRunnableResult
public static interface IRunUtil.IRunnableResult
com.android.tradefed.util.IRunUtil.IRunnableResult |
Une interface pour exécuter de manière asynchrone une opération qui renvoie un état booléen.
Résumé
Méthodes publiques | |
---|---|
abstract void | cancel () Annulez l'opération. |
default | getCommand () Renvoie la commande associée à l'exécutable. |
default CommandResult | getResult () Renvoie le |
abstract boolean | run () Exécutez l'opération. |
Méthodes publiques
Annuler
public abstract void cancel ()
Annulez l'opération.
getCommand
publicgetCommand ()
Renvoie la commande associée à l'exécutable.
Retour | |
---|---|
obtenirRésultat
public CommandResult getResult ()
Renvoie le CommandResult
associé à la commande.
Retour | |
---|---|
CommandResult |
courir
public abstract boolean run ()
Exécutez l'opération.
Retour | |
---|---|
boolean | true si l'opération s'est bien déroulée, false sinon |
Lance | |
---|---|
| si l'opération s'est terminée anormalement |