Package com.mongodb.connection
Class AsynchronousSocketChannelStreamFactoryFactory
- java.lang.Object
-
- com.mongodb.connection.AsynchronousSocketChannelStreamFactoryFactory
-
- All Implemented Interfaces:
StreamFactoryFactory
public final class AsynchronousSocketChannelStreamFactoryFactory extends Object implements StreamFactoryFactory
AStreamFactoryFactoryimplementation for AsynchronousSocketChannel-based streams.- Since:
- 3.1
- See Also:
AsynchronousSocketChannel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsynchronousSocketChannelStreamFactoryFactory.BuilderA builder for an instance ofAsynchronousSocketChannelStreamFactoryFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AsynchronousSocketChannelStreamFactoryFactory.Builderbuilder()Gets a builder for an instance ofAsynchronousSocketChannelStreamFactoryFactory.StreamFactorycreate(SocketSettings socketSettings, SslSettings sslSettings)Create aStreamFactorywith the given settings.
-
-
-
Method Detail
-
builder
public static AsynchronousSocketChannelStreamFactoryFactory.Builder builder()
Gets a builder for an instance ofAsynchronousSocketChannelStreamFactoryFactory.- Returns:
- the builder
- Since:
- 3.6
-
create
public StreamFactory create(SocketSettings socketSettings, SslSettings sslSettings)
Description copied from interface:StreamFactoryFactoryCreate aStreamFactorywith the given settings.- Specified by:
createin interfaceStreamFactoryFactory- Parameters:
socketSettings- the socket settingssslSettings- the SSL settings- Returns:
- a stream factory that will apply the given settins
-
-