Package org.ldaptive.transport
Interface Transport
-
- All Known Implementing Classes:
DefaultNettyTransport,StatefulNettyTransport
public interface TransportProvides an abstraction layer for differentConnectionimplementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Free any resources associated with this transport.Connectioncreate(ConnectionConfig cc)Create a connection object.voidshutdown()Force shutdown of this transport.
-
-
-
Method Detail
-
create
Connection create(ConnectionConfig cc)
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).
-
-