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.ThrowableattachCallerThreadStackTrace(java.lang.Throwable failure)TgetResult()voidonComplete(T result)Handles successful completion of the operation.voidonFailure(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:ResultHandlerHandles successful completion of the operation.- Specified by:
onCompletein interfaceResultHandler<T>- Parameters:
result- the result
-
onFailure
public void onFailure(GradleConnectionException failure)
Description copied from interface:ResultHandlerHandles a failed operation. This method is invoked once only for a given operation.- Specified by:
onFailurein interfaceResultHandler<T>- Parameters:
failure- the failure
-
-