IRunUtil.IRunnableResult

public static interface IRunUtil.IRunnableResult

com.android.tradefed.util.IRunUtil.IRunnableResult


An interface for asynchronously executing an operation that returns a boolean status.

Summary

Public methods

abstract void cancel()

Cancel the operation.

default getCommand()

Returns the command associated with the runnable.

default CommandResult getResult()

Returns the CommandResult associated with the command.

abstract boolean run()

Execute the operation.

Public methods

cancel

public abstract void cancel ()

Cancel the operation.

getCommand

public  getCommand ()

Returns the command associated with the runnable.

Returns

getResult

public CommandResult getResult ()

Returns the CommandResult associated with the command.

Returns
CommandResult

run

public abstract boolean run ()

Execute the operation.

Returns
boolean true if operation is performed successfully, false otherwise

Throws
Exception if operation terminated abnormally