Package org.apache.iotdb.rpc
Class TElasticFramedTransport.Factory
- java.lang.Object
-
- org.apache.thrift.transport.TTransportFactory
-
- org.apache.iotdb.rpc.TElasticFramedTransport.Factory
-
- Direct Known Subclasses:
TSnappyElasticFramedTransport.Factory
- Enclosing class:
- TElasticFramedTransport
public static class TElasticFramedTransport.Factory extends org.apache.thrift.transport.TTransportFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected intthriftDefaultBufferSizeThe capacity of the underlying buffer is allowed to exceed thriftDefaultBufferSize, but if adjacent requests all have sizes smaller than thriftDefaultBufferSize, the underlying buffer will be shrunk beneath thriftDefaultBufferSize.protected intthriftMaxFrameSizeIt is used to prevent the size of the parsing package from being too large and allocating the buffer will cause oom.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.thrift.transport.TTransportgetTransport(org.apache.thrift.transport.TTransport trans)
-
-
-
Field Detail
-
thriftMaxFrameSize
protected final int thriftMaxFrameSize
It is used to prevent the size of the parsing package from being too large and allocating the buffer will cause oom. Therefore, the maximum length of the requested memory is limited when reading.
-
thriftDefaultBufferSize
protected final int thriftDefaultBufferSize
The capacity of the underlying buffer is allowed to exceed thriftDefaultBufferSize, but if adjacent requests all have sizes smaller than thriftDefaultBufferSize, the underlying buffer will be shrunk beneath thriftDefaultBufferSize. The shrinking is limited at most once per minute to reduce overhead when thriftDefaultBufferSize is set unreasonably or the workload naturally contains both ver large and very small requests.
-
-