public static interface ConnectionSocket.Factory
| Modifier and Type | Method and Description |
|---|---|
@NotNull ConnectionSocket |
newSocket(@NotNull java.lang.String hostname,
int port,
@Nullable javax.net.ssl.SSLContext sslContext,
@Nullable java.lang.Long timeoutMs)
Creates a new connection socket into the server.
|
@NotNull @NotNull ConnectionSocket newSocket(@NotNull @NotNull java.lang.String hostname, int port, @Nullable @Nullable javax.net.ssl.SSLContext sslContext, @Nullable @Nullable java.lang.Long timeoutMs)
hostname - the hostnameport - the postsslContext - an SSLContext, if anytimeoutMs - a timeout, in milliseconds, if anyConnectionSocket.