Package com.ocient.transport
Class JavaNetOcientWireV1Transport.Factory
java.lang.Object
com.ocient.transport.JavaNetOcientWireV1Transport.Factory
- All Implemented Interfaces:
SimplexTransportFactory<JavaNetOcientWireV1Transport>
- Enclosing class:
JavaNetOcientWireV1Transport
public static class JavaNetOcientWireV1Transport.Factory
extends Object
implements SimplexTransportFactory<JavaNetOcientWireV1Transport>
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
connect
public CompletionStage<TransportResult<JavaNetOcientWireV1Transport>> connect(String host, int port, XGConnection.Tls tls, int connectTimeout) Description copied from interface:SimplexTransportFactoryConnects to a remote host using the specified transport and configuration.- Specified by:
connectin interfaceSimplexTransportFactory<JavaNetOcientWireV1Transport>- 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
-