Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package twitter
    Definition Classes
    com
  • package finagle
    Definition Classes
    twitter
  • package thrift

    Please use the new interface, com.twitter.finagle.Thrift, for constructing Thrift clients and servers.

    Deprecation

    Please use the new interface, com.twitter.finagle.Thrift, for constructing Thrift clients and servers.

    Thrift codecs

    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.

    Definition Classes
    finagle
  • package scribe
    Definition Classes
    thrift
  • package thriftscala
    Definition Classes
    scribe
  • LogEntry
  • ResultCode
  • Scribe
  • Scribe$FinagleClient
  • Scribe$FinagleService

package thriftscala

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait LogEntry extends ThriftStruct with Product2[String, String] with ValidatingThriftStruct[LogEntry] with Serializable

    Prefer the companion object's com.twitter.finagle.thrift.scribe.thriftscala.LogEntry.apply for construction if you don't need to specify passthrough fields.

  2. sealed trait ResultCode extends ThriftEnum with Serializable
    Annotations
    @Generated()
  3. class Scribe$FinagleClient extends MethodPerEndpoint
    Annotations
    @Generated()
  4. class Scribe$FinagleService extends Service[Array[Byte], Array[Byte]]
    Annotations
    @Generated()

Value Members

  1. object LogEntry extends ValidatingThriftStructCodec3[LogEntry] with StructBuilderFactory[LogEntry] with Serializable
  2. object ResultCode extends ThriftEnumObject[ResultCode] with Serializable
    Annotations
    @Generated()
  3. object Scribe extends GeneratedThriftService
    Annotations
    @Generated()

Ungrouped