Skip to content

Commit a15251e

Browse files
committed
add javadoc
1 parent 180aa2f commit a15251e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/java/src/main/java/org/apache/thrift/transport/TNonblockingSSLSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.slf4j.Logger;
3232
import org.slf4j.LoggerFactory;
3333

34-
/** Transport for use with async client. */
34+
/** Transport for use with async ssl client. */
3535
public class TNonblockingSSLSocket extends TNonblockingSocket implements SocketAddressProvider {
3636

3737
private static final Logger LOGGER =

lib/java/src/main/java/org/apache/thrift/transport/TSSLTransportFactory.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ public static TSocket getClientSocket(
192192
return createClient(ctx.getSocketFactory(), host, port, timeout);
193193
}
194194

195+
/**
196+
* Get a custom configured TNonblockingTransport. The SSL settings are obtained from the passed in
197+
* TSSLTransportParameters.
198+
*
199+
* @param host
200+
* @param port
201+
* @param timeout
202+
* @param params
203+
* @return TNonblockingTransport
204+
* @throws TTransportException
205+
*/
195206
public static TNonblockingTransport getNonblockingClientSocket(
196207
String host, int port, int timeout, TSSLTransportParameters params)
197208
throws TTransportException, IOException {

0 commit comments

Comments
 (0)