Package org.ldaptive.transport
Interface Transport
- All Known Implementing Classes:
DefaultNettyTransport,StatefulNettyTransport
public interface Transport
Provides an abstraction layer for different
Connection implementations.-
Method Details
-
create
Create a connection object. Implementations should not open a TCP socket in this method.- Parameters:
cc- connection configuration- Returns:
- connection
-
close
void close()Free any resources associated with this transport. This method is invoked by the connection factory using this transport. -
shutdown
void shutdown()Force shutdown of this transport. This method is only needed in cases where the connection factory is configured not to close the transport. SeeThreadPoolConfig.setShutdownStrategy(ThreadPoolConfig.ShutdownStrategy).
-