Package org.ldaptive.transport.netty
Class NioSingletonTransport
java.lang.Object
org.ldaptive.transport.netty.NettyConnectionFactoryTransport
org.ldaptive.transport.netty.NioSingletonTransport
- All Implemented Interfaces:
Transport
Creates netty connections using a single, shared
NioEventLoopGroup. This event loop group uses daemon
threads and does not expect to be shutdown, however it can be manually shutdown using shutdown().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final io.netty.channel.EventLoopGroupEvent group used for all connections .Fields inherited from class org.ldaptive.transport.netty.NettyConnectionFactoryTransport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Free any resources associated with this transport.static voidshutdown()InvokesNettyUtils.shutdownGracefully(EventLoopGroup)on the underlying worker group.Methods inherited from class org.ldaptive.transport.netty.NettyConnectionFactoryTransport
create, setShutdownOnClose, toString
-
Field Details
-
SHARED_WORKER_GROUP
private static final io.netty.channel.EventLoopGroup SHARED_WORKER_GROUPEvent group used for all connections .
-
-
Constructor Details
-
NioSingletonTransport
public NioSingletonTransport()Default constructor.
-
-
Method Details
-
close
public void close()Description copied from interface:TransportFree any resources associated with this transport.- Specified by:
closein interfaceTransport- Overrides:
closein classNettyConnectionFactoryTransport
-
shutdown
public static void shutdown()InvokesNettyUtils.shutdownGracefully(EventLoopGroup)on the underlying worker group.
-