Class BlockingResultHandler<T>
- java.lang.Object
-
- org.gradle.tooling.internal.consumer.BlockingResultHandler<T>
-
- All Implemented Interfaces:
ResultHandler<T>
public class BlockingResultHandler<T> extends java.lang.Object implements ResultHandler<T>
-
-
Constructor Summary
Constructors Constructor Description BlockingResultHandler(java.lang.Class<T> resultType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Throwable
attachCallerThreadStackTrace(java.lang.Throwable failure)
T
getResult()
void
onComplete(T result)
Handles successful completion of the operation.void
onFailure(GradleConnectionException failure)
Handles a failed operation.
-
-
-
Constructor Detail
-
BlockingResultHandler
public BlockingResultHandler(java.lang.Class<T> resultType)
-
-
Method Detail
-
getResult
public T getResult()
-
attachCallerThreadStackTrace
public static java.lang.Throwable attachCallerThreadStackTrace(java.lang.Throwable failure)
-
onComplete
public void onComplete(T result)
Description copied from interface:ResultHandler
Handles successful completion of the operation.- Specified by:
onComplete
in interfaceResultHandler<T>
- Parameters:
result
- the result
-
onFailure
public void onFailure(GradleConnectionException failure)
Description copied from interface:ResultHandler
Handles a failed operation. This method is invoked once only for a given operation.- Specified by:
onFailure
in interfaceResultHandler<T>
- Parameters:
failure
- the failure
-
-