Package org.ldaptive.transport.netty
Class SingletonTransport
java.lang.Object
org.ldaptive.transport.netty.NettyConnectionFactoryTransport
org.ldaptive.transport.netty.SingletonTransport
- All Implemented Interfaces:
Transport
Creates netty connections using a single, shared
EventLoopGroup using the best fit event loop group based on
the operating system. See Epoll.isAvailable() and KQueue.isAvailable(). 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
-
SingletonTransport
public SingletonTransport()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.
-