Package org.apache.iotdb.rpc
Class TimeoutChangeableTFastFramedTransport
- java.lang.Object
-
- org.apache.thrift.transport.TTransport
-
- org.apache.iotdb.rpc.TElasticFramedTransport
-
- org.apache.iotdb.rpc.TimeoutChangeableTFastFramedTransport
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,TimeoutChangeableTransport
public class TimeoutChangeableTFastFramedTransport extends TElasticFramedTransport implements TimeoutChangeableTransport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeoutChangeableTFastFramedTransport.Factory
-
Field Summary
-
Fields inherited from class org.apache.iotdb.rpc.TElasticFramedTransport
i32buf, readBuffer, thriftDefaultBufferSize, thriftMaxFrameSize, underlying, writeBuffer
-
-
Constructor Summary
Constructors Constructor Description TimeoutChangeableTFastFramedTransport(org.apache.thrift.transport.TSocket underlying, int thriftDefaultBufferSize, int thriftMaxFrameSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.thrift.transport.TTransportgetSocket()intgetTimeOut()voidsetTimeout(int timeout)-
Methods inherited from class org.apache.iotdb.rpc.TElasticFramedTransport
checkReadBytesAvailable, close, flush, getConfiguration, isOpen, open, read, readFrame, updateKnownMessageSize, write
-
-
-
-
Method Detail
-
setTimeout
public void setTimeout(int timeout)
- Specified by:
setTimeoutin interfaceTimeoutChangeableTransport
-
getTimeOut
public int getTimeOut() throws java.net.SocketException- Specified by:
getTimeOutin interfaceTimeoutChangeableTransport- Throws:
java.net.SocketException
-
getSocket
public org.apache.thrift.transport.TTransport getSocket()
- Overrides:
getSocketin classTElasticFramedTransport
-
-