package
thrift
Type Members
-
case class
ClientId(name: String) extends Product with Serializable
-
class
ClientIdRequiredFilter[Req, Rep] extends SimpleFilter[Req, Rep]
-
case class
InvalidThriftConnectionException() extends Exception with ServiceException with Product with Serializable
-
-
class
SeqIdFilter extends SimpleFilter[ThriftClientRequest, Array[Byte]]
-
case class
SeqMismatchException(id: Int, expected: Int) extends TransportException with Product with Serializable
-
class
ThriftCall[A <: org.apache.thrift.TBase[_, _], R <: org.apache.thrift.TBase[_, _]] extends AnyRef
-
class
ThriftCallFactory[A <: org.apache.thrift.TBase[_, _], R <: org.apache.thrift.TBase[_, _]] extends AnyRef
-
-
class
ThriftClientBufferedCodecFactory extends (ClientCodecConfig) ⇒ Codec[ThriftClientRequest, Array[Byte]]
-
class
ThriftClientFramedCodec extends Codec[ThriftClientRequest, Array[Byte]]
-
class
ThriftClientFramedCodecFactory extends (ClientCodecConfig) ⇒ Codec[ThriftClientRequest, Array[Byte]]
-
-
class
ThriftFrameCodec extends SimpleChannelHandler
-
case class
ThriftReply[R <: org.apache.thrift.TBase[_, _]](response: R, call: com.twitter.finagle.thrift.ThriftCall[_ <: org.apache.thrift.TBase[_, _], _ <: org.apache.thrift.TBase[_, _]]) extends Product with Serializable
-
-
class
ThriftServerBufferedCodecFactory extends (ServerCodecConfig) ⇒ Codec[Array[Byte], Array[Byte]]
-
-
class
ThriftServerFramedCodecFactory extends (ServerCodecConfig) ⇒ Codec[Array[Byte], Array[Byte]]
-
class
ValidateThriftService extends ServiceProxy[ThriftClientRequest, Array[Byte]]
Value Members
-
object
ClientId extends Serializable
-
-
-
-
-
-
-
object
ThriftTypes extends HashMap[String, com.twitter.finagle.thrift.ThriftCallFactory[_, _]]
-
Thrift codecs
We provide both framed and buffered client protocol support, and server support for the framed protocol. The public implementations are:
- ThriftClientBufferedCodec - ThriftClientFramedCodec - 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.