A Param
to control upgrading the thrift protocol to TTwitter.
A Param
to control upgrading the thrift protocol to TTwitter.
The user guide for details on Twitter-upgrade Thrift.
A Param
to control whether a framed transport should be used.
A Param
to control whether a framed transport should be used.
If this is set to false, a buffered transport is used. Framed
transports are enabled by default.
Whether a framed transport should be used.
A Param
to set the max size of a reusable buffer for the thrift response.
A Param
to set the max size of a reusable buffer for the thrift response.
If the buffer size exceeds the specified value, the buffer is not reused,
and a new buffer is used for the next thrift response.
The default max size is 16Kb.
Max buffer size in bytes.
A Param
to control whether to record per-endpoint stats.
A Param
to control whether to record per-endpoint stats.
If this is set to true, per-endpoint stats will be counted.
Whether to count per-endpoint stats
A Param
that sets a factory to create a TReusableBuffer, the TReusableBuffer can be
shared with other client instances.
A Param
that sets a factory to create a TReusableBuffer, the TReusableBuffer can be
shared with other client instances.
If this is set, MaxReusableBufferSize will be ignored.
The vanilla Thrift Transporter
and Listener
factories deviate from other protocols in
the result of the netty pipeline: most other protocols expect to receive a framed Buf
while vanilla thrift produces an Array[Byte]
.
The vanilla Thrift Transporter
and Listener
factories deviate from other protocols in
the result of the netty pipeline: most other protocols expect to receive a framed Buf
while vanilla thrift produces an Array[Byte]
. This has two related motivations. First, the
end result needed by the thrift implementations is an Array[Byte]
, which is relatively
trivial to deal with and is a JVM native type so it's unnecessary to go through a Buf
.
By avoiding an indirection through Buf
we can avoid an unnecessary copy in the netty4
pipeline that would be required to ensure that the bytes were on the heap before
entering the Finagle transport types.