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.
A Listener for the Apache Thrift buffered transport.
The ThriftCall object represents a thrift dispatch on the channel.
A Finagle Client for Apache Thrift.
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.
A Listener for the Apache Thrift framed transport.
ThriftServerBufferedCodec implements a buffered thrift transport.
A registry for Thrift types.
Deprecation
Please use the new interface, com.twitter.finagle.Thrift, for constructing thrift clients and servers.
Thrift codecs
We provide both framed and buffered client protocol support, and server support for the framed protocol. The public implementations are:
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.