package filter
- Alphabetic
- Public
- All
Type Members
- class ThriftForwardingWarmUpFilter extends ForwardingWarmUpFilter[Array[Byte], Array[Byte]]
Value Members
- object ThriftForwardingWarmUpFilter
Please use the new interface, com.twitter.finagle.Thrift, for constructing Thrift clients and servers.
Please use the new interface, com.twitter.finagle.Thrift, for constructing Thrift clients and servers.
We provide client and server protocol support for the framed protocol. The public implementations are defined on the Thrift object:
The type of the server codec is Service[Array[Byte], Array[Byte]]
and the client codecs are Service[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
thrift ProtocolFactory.
These transports are used by the services produced by the finagle thrift codegenerator.
val service: Service[ThriftClientRequest, Array[Byte]] = ClientBuilder() .hosts("foobar.com:123") .stack(Thrift.client) .build() // Wrap the raw Thrift transport in a Client decorator. The client // provides a convenient procedural interface for accessing the Thrift // server. val client = new Hello.ServiceToClient(service, protocolFactory)
In this example, Hello is the thrift interface, and the inner
class ServiceToClient is provided by the finagle thrift code
generator.