ResolvedAddress- The type of a resolved address that can be used for connecting.
C- The type of connections created by this factory.
public interface ConnectionFactory<ResolvedAddress,C extends ListenableAsyncCloseable> extends ListenableAsyncCloseable
|Modifier and Type||Method and Description|
Creates and asynchronously returns a connection.
Single<C> newConnection(ResolvedAddress address)
address- to connect.
Singlethat emits the created connection.