com.twitter

finagle

package finagle

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. finagle
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class ThriftMuxClientLike extends StackBasedClient[ThriftClientRequest, Array[Byte]] with Parameterized[ThriftMuxClientLike] with Transformable[ThriftMuxClientLike] with ThriftRichClient

    A com.twitter.finagle.Client for the Thrift protocol served over com.twitter.finagle.mux.

    A com.twitter.finagle.Client for the Thrift protocol served over com.twitter.finagle.mux. This class can't be instantiated. For a default instance of ThriftMuxClientLike, see com.twitter.finagle.ThriftMuxClient.

    Annotations
    @deprecated
    Deprecated

    (Since version 7.0.0) Use object ThriftMux

  2. class ThriftMuxServerLike extends Server[Array[Byte], Array[Byte]] with ThriftRichServer with (Params) ⇒ Server[Array[Byte], Array[Byte]]

    A server for the Thrift protocol served over com.twitter.finagle.mux.

    A server for the Thrift protocol served over com.twitter.finagle.mux. ThriftMuxServer is backwards-compatible with Thrift clients that use the framed transport and binary protocol. It switches to the backward-compatible mode when the first request is not recognized as a valid Mux message but can be successfully handled by the underlying Thrift service. Since a Thrift message that is encoded with the binary protocol starts with a header value of 0x800100xx, Mux does not confuse it with a valid Mux message (0x80 = -128 is an invalid Mux message type) and the server can reliably detect the non-Mux Thrift client and switch to the backwards-compatible mode.

    Note that the server is also compatible with non-Mux finagle-thrift clients. It correctly responds to the protocol up-negotiation request and passes the tracing information embedded in the thrift requests to Mux (which has native tracing support).

    This class can't be instantiated. For a default instance of ThriftMuxServerLike, see com.twitter.finagle.ThriftMuxServer

    Annotations
    @deprecated
    Deprecated

    (Since version 7.0.0) Use object ThriftMux

Value Members

  1. object ThriftMux extends Client[ThriftClientRequest, Array[Byte]] with ThriftRichClient with Server[Array[Byte], Array[Byte]] with ThriftRichServer

    The ThriftMux object is both a com.twitter.finagle.Client and a com.twitter.finagle.Server for the Thrift protocol served over com.twitter.finagle.mux.

    The ThriftMux object is both a com.twitter.finagle.Client and a com.twitter.finagle.Server for the Thrift protocol served over com.twitter.finagle.mux. Rich interfaces are provided to adhere to those generated from a Thrift IDL by Scrooge or thrift-finagle.

    Clients can be created directly from an interface generated from a Thrift IDL:

    $clientExample

    Servers are also simple to expose:

    $serverExample

    This object does not expose any configuration options. Both clients and servers are instantiated with sane defaults. Clients are labeled with the "clnt/thrift" prefix and servers with "srv/thrift". If you'd like more configuration, see the com.twitter.finagle.ThriftMux.Server and com.twitter.finagle.ThriftMux.Client classes.

Deprecated Value Members

  1. object ThriftMuxClient extends ThriftMuxClientLike

    A client for thrift served over com.twitter.finagle.mux

    A client for thrift served over com.twitter.finagle.mux

    $clientExample

    Annotations
    @deprecated
    Deprecated

    (Since version 7.0.0) Use object ThriftMux

  2. object ThriftMuxServer extends ThriftMuxServerLike

    A Thrift server served over com.twitter.finagle.mux.

    A Thrift server served over com.twitter.finagle.mux.

    $serverExample

    Annotations
    @deprecated
    Deprecated

    (Since version 7.0.0) Use object ThriftMux

Inherited from AnyRef

Inherited from Any

Ungrouped