Package com.mongodb.internal.async
Class ErrorHandlingResultCallback<T>
- java.lang.Object
-
- com.mongodb.internal.async.ErrorHandlingResultCallback<T>
-
- Type Parameters:
T
- the result type
- All Implemented Interfaces:
SingleResultCallback<T>
@Deprecated(since="2021-05-27") public class ErrorHandlingResultCallback<T> extends java.lang.Object implements SingleResultCallback<T>
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.This class is not part of the public API and may be removed or changed at any time.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> SingleResultCallback<T>
errorHandlingCallback(SingleResultCallback<T> callback, Logger logger)
Deprecated.void
onResult(T result, java.lang.Throwable t)
Deprecated.Called when the operation completes.
-
-
-
Method Detail
-
errorHandlingCallback
public static <T> SingleResultCallback<T> errorHandlingCallback(SingleResultCallback<T> callback, Logger logger)
Deprecated.
-
onResult
public void onResult(T result, java.lang.Throwable t)
Deprecated.Description copied from interface:SingleResultCallback
Called when the operation completes.- Specified by:
onResult
in interfaceSingleResultCallback<T>
- Parameters:
result
- the result, which may be null. Always null if e is not null.t
- the throwable, or null if the operation completed normally
-
-