Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.connection.netty |
This package contains netty specific classes
|
Modifier and Type | Method and Description |
---|---|
SocketSettings |
MongoClientSettings.getHeartbeatSocketSettings()
Gets the connection settings for the heartbeat thread (the background task that checks the state of the cluster) wrapped in a
settings object.
|
SocketSettings |
MongoClientSettings.getSocketSettings()
Gets the connection-specific settings wrapped in a settings object.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.heartbeatSocketSettings(SocketSettings heartbeatSocketSettings)
Sets the heartbeat socket settings.
|
MongoClientSettings.Builder |
MongoClientSettings.Builder.socketSettings(SocketSettings socketSettings)
Sets the socket settings.
|
Modifier and Type | Method and Description |
---|---|
SocketSettings |
SocketSettings.Builder.build()
Build an instance of
SocketSettings . |
Modifier and Type | Method and Description |
---|---|
StreamFactory |
StreamFactoryFactory.create(SocketSettings socketSettings,
SslSettings sslSettings)
Create a
StreamFactory with the given settings. |
StreamFactory |
AsynchronousSocketChannelStreamFactoryFactory.create(SocketSettings socketSettings,
SslSettings sslSettings) |
Constructor and Description |
---|
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Create a new factory.
|
SocketStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Creates a new factory with the given settings for connecting to servers and the given SSL settings
|
SocketStreamFactory(SocketSettings settings,
SslSettings sslSettings,
SocketFactory socketFactory)
Creates a new factory with the given settings for connecting to servers and a factory for creating connections.
|
Modifier and Type | Method and Description |
---|---|
StreamFactory |
NettyStreamFactoryFactory.create(SocketSettings socketSettings,
SslSettings sslSettings) |
Constructor and Description |
---|
NettyStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Construct a new instance of the factory with a default allocator and event loop group.
|
NettyStreamFactory(SocketSettings settings,
SslSettings sslSettings,
io.netty.channel.EventLoopGroup eventLoopGroup,
io.netty.buffer.ByteBufAllocator allocator)
Construct a new instance of the factory.
|
Copyright © 2016. All Rights Reserved.