Class TSocketWrapper


  • public class TSocketWrapper
    extends Object
    In Thrift 0.14.1, TSocket's constructor throws a never-happened exception. So, we screen the exception https://issues.apache.org/jira/browse/THRIFT-5412
    • Method Detail

      • wrap

        public static org.apache.thrift.transport.TSocket wrap​(org.apache.thrift.TConfiguration config,
                                                               String host,
                                                               int port,
                                                               int timeout)
      • wrap

        public static org.apache.thrift.transport.TSocket wrap​(org.apache.thrift.TConfiguration config,
                                                               String host,
                                                               int port,
                                                               int socketTimeout,
                                                               int connectTimeout)
      • wrap

        public static org.apache.thrift.transport.TSocket wrap​(org.apache.thrift.TConfiguration config,
                                                               String host,
                                                               int port)
      • wrap

        public static org.apache.thrift.transport.TSocket wrap​(String host,
                                                               int port)