This filter can only be used with finagle thrift codec.
A filter to override the input sequence ids, replacing them with ones of our own provenance.
The ThriftCall object represents a thrift dispatch on the channel.
Encapsulates the result of a call to a Thrift service.
A filter that invalidates the a connection if it suffers an irrecoverable application exception.
ClientId
provides the client identification of the incoming request if available.
ThriftClientBufferedCodec implements a buffered thrift transport that supports upgrading in order to provide TraceContexts across requests.
ThriftClientFramedCodec implements a framed thrift transport that supports upgrading in order to provide TraceContexts across requests.
ThriftServerBufferedCodec implements a buffered thrift transport.
A registry for Thrift types.
Thrift codecs
We provide both framed and buffered client protocol support, and server support for the framed protocol. The public implementations are:
- com.twitter.finagle.thrift.ThriftClientBufferedCodec - com.twitter.finagle.thrift.ThriftClientFramedCodec - com.twitter.finagle.thrift.ThriftServerFramedCodec
The type of the server codec is
Service[Array[Byte], Array[Byte]]
and the client codecs areService[ThriftClientRequest, Array[Byte]]
. The service provided is that of a "transport" of thrift messages (requests and replies) according to the protocol chosen. This is why the client codecs need to have access to a thriftProtocolFactory
.These transports are used by the services produced by the finagle thrift codegenerator.
In this example,
Hello
is the thrift interface, and the inner classServiceToClient
is provided by the finagle thrift code generator.