Package org.ldaptive.transport.netty
Class ConnectionFactoryTransport
java.lang.Object
org.ldaptive.transport.netty.NettyConnectionFactoryTransport
org.ldaptive.transport.netty.ConnectionFactoryTransport
- All Implemented Interfaces:
Transport
- Direct Known Subclasses:
ConnectionFactoryTransport.DualThread,ConnectionFactoryTransport.SingleThread
Creates netty connections using the best fit event loop group based on the operating system. See
Epoll.isAvailable() and KQueue.isAvailable(). The event loop
group is shutdown when the connection factory is closed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAConnectionFactoryTransportconfigured with two underlying threads.static classAConnectionFactoryTransportconfigured with a single underlying thread. -
Field Summary
Fields inherited from class org.ldaptive.transport.netty.NettyConnectionFactoryTransport
logger -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new connection factory transport.ConnectionFactoryTransport(int ioThreads) Creates a new connection factory transport.ConnectionFactoryTransport(int ioThreads, int messageThreads) Creates a new connection factory transport.ConnectionFactoryTransport(String name, int ioThreads) Creates a new connection factory transport.ConnectionFactoryTransport(String name, int ioThreads, int messageThreads) Creates a new connection factory transport. -
Method Summary
Methods inherited from class org.ldaptive.transport.netty.NettyConnectionFactoryTransport
close, create, setShutdownOnClose, toString
-
Constructor Details
-
ConnectionFactoryTransport
public ConnectionFactoryTransport()Creates a new connection factory transport. -
ConnectionFactoryTransport
public ConnectionFactoryTransport(int ioThreads) Creates a new connection factory transport.- Parameters:
ioThreads- number of threads used for I/O in the event loop group
-
ConnectionFactoryTransport
Creates a new connection factory transport.- Parameters:
name- to assign the thread poolioThreads- number of threads used for I/O in the event loop group
-
ConnectionFactoryTransport
public ConnectionFactoryTransport(int ioThreads, int messageThreads) Creates a new connection factory transport.- Parameters:
ioThreads- number of threads used for I/O in the event loop groupmessageThreads- number of threads for LDAP message handling in the event loop group
-
ConnectionFactoryTransport
Creates a new connection factory transport.- Parameters:
name- to assign the thread poolioThreads- number of threads used for I/O in the event loop groupmessageThreads- number of threads for LDAP message handling in the event loop group
-