AsyncCompletionHandler (driver-core 5.5.0 API) (original) (raw)
Type Parameters:
T
- the type of a successful completion
public interface AsyncCompletionHandler
Completion handler for asynchronous I/O.
Since:
3.0
Method Summary
default com.mongodb.internal.async.SingleResultCallback<[T](AsyncCompletionHandler.html "type parameter in AsyncCompletionHandler")>
void
Invoked when an operation has completed.void
Invoked when an operation fails.
Method Details
completed
Invoked when an operation has completed.
Parameters:
t
- the result of the completed operationfailed
Invoked when an operation fails.
Parameters:
t
- the exception that describes the failureasCallback
default com.mongodb.internal.async.SingleResultCallback<T> asCallback()
Returns:
this handler as a callback