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
public class ConnectionFactoryTransport extends NettyConnectionFactoryTransport
Creates netty connections using the best fit event loop group based on the operating system. SeeEpoll.isAvailable()
andKQueue.isAvailable()
. The event loop group is shutdown when the connection factory is closed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConnectionFactoryTransport.DualThread
AConnectionFactoryTransport
configured with two underlying threads.static class
ConnectionFactoryTransport.SingleThread
AConnectionFactoryTransport
configured with a single underlying thread.
-
Field Summary
-
Fields inherited from class org.ldaptive.transport.netty.NettyConnectionFactoryTransport
logger
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactoryTransport()
Creates 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.
-
-
-
Constructor Detail
-
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
public ConnectionFactoryTransport(String name, int ioThreads)
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
public ConnectionFactoryTransport(String name, int ioThreads, int messageThreads)
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
-
-