Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
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 | Field and Description |
---|---|
private SocketSettings |
MongoClientOptions.heartbeatSocketSettings |
private SocketSettings |
MongoClientOptions.socketSettings |
Modifier and Type | Method and Description |
---|---|
(package private) SocketSettings |
MongoClientOptions.getHeartbeatSocketSettings() |
(package private) SocketSettings |
MongoClientOptions.getSocketSettings() |
Modifier and Type | Field and Description |
---|---|
private SocketSettings |
MongoClientSettings.heartbeatSocketSettings |
private SocketSettings |
MongoClientSettings.Builder.heartbeatSocketSettings |
private SocketSettings |
MongoClientSettings.socketSettings |
private SocketSettings |
MongoClientSettings.Builder.socketSettings |
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 |
---|---|
private static StreamFactory |
MongoClients.getStreamFactory(StreamFactoryFactory streamFactoryFactory,
SocketSettings socketSettings,
SslSettings sslSettings,
java.lang.String streamType) |
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 | Field and Description |
---|---|
private SocketSettings |
SocketStreamFactory.settings |
private SocketSettings |
SocketStream.settings |
private SocketSettings |
SocketChannelStream.settings |
private SocketSettings |
AsynchronousSocketChannelStreamFactory.settings |
private SocketSettings |
AsynchronousSocketChannelStream.settings |
Modifier and Type | Method and Description |
---|---|
SocketSettings |
SocketSettings.Builder.build()
Build an instance of
SocketSettings . |
(package private) SocketSettings |
SocketStream.getSettings()
Get the settings for this socket.
|
(package private) SocketSettings |
SocketChannelStream.getSettings()
Get the settings for this socket.
|
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) |
(package private) static void |
SocketStreamHelper.initialize(java.net.Socket socket,
ServerAddress address,
SocketSettings settings,
SslSettings sslSettings) |
Constructor and Description |
---|
AsynchronousSocketChannelStream(ServerAddress serverAddress,
SocketSettings settings,
BufferProvider bufferProvider) |
AsynchronousSocketChannelStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Create a new factory.
|
SocketChannelStream(ServerAddress address,
SocketSettings settings,
SslSettings sslSettings,
BufferProvider bufferProvider) |
SocketStream(ServerAddress address,
SocketSettings settings,
SslSettings sslSettings,
javax.net.SocketFactory socketFactory,
BufferProvider bufferProvider) |
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,
javax.net.SocketFactory socketFactory)
Creates a new factory with the given settings for connecting to servers and a factory for creating connections.
|
Modifier and Type | Field and Description |
---|---|
private SocketSettings |
NettyStreamFactory.settings |
private SocketSettings |
NettyStream.settings |
Modifier and Type | Method and Description |
---|---|
SocketSettings |
NettyStream.getSettings() |
Modifier and Type | Method and Description |
---|---|
StreamFactory |
NettyStreamFactoryFactory.create(SocketSettings socketSettings,
SslSettings sslSettings) |
Constructor and Description |
---|
NettyStream(ServerAddress address,
SocketSettings settings,
SslSettings sslSettings,
io.netty.channel.EventLoopGroup workerGroup,
java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass,
io.netty.buffer.ByteBufAllocator allocator) |
NettyStreamFactory(SocketSettings settings,
SslSettings sslSettings)
Construct a new instance of the factory with a default allocator, nio event loop group and nio socket channel.
|
NettyStreamFactory(SocketSettings settings,
SslSettings sslSettings,
io.netty.channel.EventLoopGroup eventLoopGroup)
Construct a new instance of the factory.
|
NettyStreamFactory(SocketSettings settings,
SslSettings sslSettings,
io.netty.channel.EventLoopGroup eventLoopGroup,
io.netty.buffer.ByteBufAllocator allocator)
Construct a new instance of the factory.
|
NettyStreamFactory(SocketSettings settings,
SslSettings sslSettings,
io.netty.channel.EventLoopGroup eventLoopGroup,
java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass,
io.netty.buffer.ByteBufAllocator allocator)
Construct a new instance of the factory.
|