Package com.mongodb.connection
Class AsyncTransportSettings.Builder
java.lang.Object
com.mongodb.connection.AsyncTransportSettings.Builder
- Enclosing class:
- AsyncTransportSettings
A builder for an instance of
AsyncTransportSettings
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build an instance ofAsyncTransportSettings
executorService
(ExecutorService executorService) The executor service, intended to be used exclusively by the mongo client.
-
Method Details
-
executorService
The executor service, intended to be used exclusively by the mongo client. Closing the mongo client will result in orderly shutdown of the executor service.When TLS is not enabled, see
AsynchronousChannelGroup.withThreadPool(ExecutorService)
for additional requirements for the executor service.- Parameters:
executorService
- the executor service- Returns:
- this
- See Also:
-
build
Build an instance ofAsyncTransportSettings
- Returns:
- an instance of
AsyncTransportSettings
-