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>
public class ErrorHandlingResultCallback<T> extends java.lang.Object implements SingleResultCallback<T>
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 Modifier and Type Method Description static <T> SingleResultCallback<T>errorHandlingCallback(SingleResultCallback<T> callback, Logger logger)voidonResult(T result, java.lang.Throwable t)Called when the operation completes.
-
-
-
Method Detail
-
errorHandlingCallback
public static <T> SingleResultCallback<T> errorHandlingCallback(SingleResultCallback<T> callback, Logger logger)
-
onResult
public void onResult(T result, java.lang.Throwable t)
Description copied from interface:SingleResultCallbackCalled when the operation completes.- Specified by:
onResultin 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
-
-