Package org.gradle.tooling
Schnittstelle ResultHandler<T>
- Typparameter:
T- The result type.
public interface ResultHandler<T>
A handler for an asynchronous operation which returns an object of type T.
- Seit:
- 1.0-milestone-3
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidonComplete(T result) Handles successful completion of the operation.voidonFailure(GradleConnectionException failure) Handles a failed operation.
-
Methodendetails
-
onComplete
Handles successful completion of the operation.- Parameter:
result- the result- Seit:
- 1.0-milestone-3
-
onFailure
Handles a failed operation. This method is invoked once only for a given operation.- Parameter:
failure- the failure- Seit:
- 1.0-milestone-3
-