Package com.ocient.transport
Interface SimplexTransportFactory<T extends SimplexTransport<?,?>>
- All Known Implementing Classes:
JavaNetOcientWireV1Transport.Factory,MockOcientCluster,NettyOcientWireV1Transport.Factory
public interface SimplexTransportFactory<T extends SimplexTransport<?,?>>
-
Method Summary
Modifier and TypeMethodDescriptionconnect(String host, int port, XGConnection.Tls tls, int connectTimeout) Connects to a remote host using the specified transport and configuration.
-
Method Details
-
connect
CompletionStage<TransportResult<T>> connect(String host, int port, XGConnection.Tls tls, int connectTimeout) Connects to a remote host using the specified transport and configuration.- Parameters:
host- the hostname or IP address of the remote hostport- the port number of the remote hosttls- the TLS configuration to use for the connection, or null if TLS is not requiredconnectTimeout- the maximum time to wait for the connection to be established, in milliseconds- Returns:
- a new
SimplexTransportobject representing the connection to the remote host
-