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 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
Modifier and TypeMethodDescriptionstatic <T> SingleResultCallback
<T> errorHandlingCallback
(SingleResultCallback<T> callback, Logger logger) Deprecated.void
Deprecated.Called when the operation completes.
-
Method Details
-
errorHandlingCallback
public static <T> SingleResultCallback<T> errorHandlingCallback(SingleResultCallback<T> callback, Logger logger) Deprecated. -
onResult
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
-