Package org.apache.iotdb.rpc
Class TNonblockingSocketWrapper
- java.lang.Object
-
- org.apache.iotdb.rpc.TNonblockingSocketWrapper
-
public class TNonblockingSocketWrapper extends Object
In Thrift 0.14.1, TNonblockingSocket's constructor throws a never-happened exception. So, we screen the exception https://issues.apache.org/jira/browse/THRIFT-5412
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.thrift.transport.TNonblockingSocketwrap(String host, int port)static org.apache.thrift.transport.TNonblockingSocketwrap(String host, int port, int timeout)static org.apache.thrift.transport.TNonblockingSocketwrap(SocketChannel socketChannel)
-
-
-
Method Detail
-
wrap
public static org.apache.thrift.transport.TNonblockingSocket wrap(String host, int port) throws IOException
- Throws:
IOException
-
wrap
public static org.apache.thrift.transport.TNonblockingSocket wrap(String host, int port, int timeout) throws IOException
- Throws:
IOException
-
wrap
public static org.apache.thrift.transport.TNonblockingSocket wrap(SocketChannel socketChannel) throws IOException
- Throws:
IOException
-
-