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