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 ofAsyncTransportSettingsexecutorService(ExecutorService executorService) TheExecutorService, intended to be used exclusively by theMongoClient.
-
Method Details
-
executorService
TheExecutorService, intended to be used exclusively by theMongoClient.Closing the
MongoClientresults in orderly shutdown of theexecutorService. The application must not directly shut down theexecutorService.When TLS is not enabled, see
AsynchronousChannelGroup.withThreadPool(ExecutorService)for additional requirements for theexecutorService.- Parameters:
executorService- the executor service- Returns:
- this
- See Also:
-
build
Build an instance ofAsyncTransportSettings- Returns:
- an instance of
AsyncTransportSettings
-