Package com.mongodb.connection.netty
Class NettyStreamFactoryFactory.Builder
- java.lang.Object
-
- com.mongodb.connection.netty.NettyStreamFactoryFactory.Builder
-
- Enclosing class:
- NettyStreamFactoryFactory
@Deprecated(since="2021-05-27") public static final class NettyStreamFactoryFactory.Builder extends java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A builder for an instance ofNettyStreamFactoryFactory
.- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NettyStreamFactoryFactory.Builder
allocator(io.netty.buffer.ByteBufAllocator allocator)
Deprecated.Sets the allocator.NettyStreamFactoryFactory
build()
Deprecated.Build an instance ofNettyStreamFactoryFactory
.NettyStreamFactoryFactory.Builder
eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Deprecated.Sets the event loop group.NettyStreamFactoryFactory.Builder
socketChannelClass(java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass)
Deprecated.Sets the socket channel class
-
-
-
Method Detail
-
allocator
public NettyStreamFactoryFactory.Builder allocator(io.netty.buffer.ByteBufAllocator allocator)
Deprecated.Sets the allocator.- Parameters:
allocator
- the allocator to use for ByteBuf instances- Returns:
- this
-
socketChannelClass
public NettyStreamFactoryFactory.Builder socketChannelClass(java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass)
Deprecated.Sets the socket channel class- Parameters:
socketChannelClass
- the socket channel class- Returns:
- this
-
eventLoopGroup
public NettyStreamFactoryFactory.Builder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Deprecated.Sets the event loop group.It is highly recommended to supply your own event loop group and manage its shutdown. Otherwise, the event loop group created by default will not be shutdown properly.
- Parameters:
eventLoopGroup
- the event loop group that all channels created by this factory will be a part of- Returns:
- this
-
build
public NettyStreamFactoryFactory build()
Deprecated.Build an instance ofNettyStreamFactoryFactory
.- Returns:
- factory of the netty stream factory
-
-