com.twitter.finagle

ThriftMuxServerLike

Related Doc: package finagle

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. 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

Linear Supertypes
(Params) ⇒ Server[Array[Byte], Array[Byte]], ThriftRichServer, Server[Array[Byte], Array[Byte]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ThriftMuxServerLike
  2. Function1
  3. ThriftRichServer
  4. Server
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Server[Array[Byte], Array[Byte]]) ⇒ A): (Params) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(params: Params): Server[Array[Byte], Array[Byte]]

    Create a new ThriftMuxServerLike with params used to configure the muxer.

    Create a new ThriftMuxServerLike with params used to configure the muxer. This makes ThriftMuxServerLike compatible with the legacy com.twitter.finagle.builder.ServerBuilder.

    Definition Classes
    ThriftMuxServerLike → Function1
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compose[A](g: (A) ⇒ Params): (A) ⇒ Server[Array[Byte], Array[Byte]]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def configured[P](p: P)(implicit arg0: Param[P]): ThriftMuxServerLike

    Create a new ThriftMuxServerLike with p added to the parameters used to configure the muxer.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(): ThriftMuxServerLike

    Used for Java access.

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val maxThriftBufferSize: Int

    Definition Classes
    ThriftRichServer
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def params: Params

    The com.twitter.finagle.Stack.Params used to configure the stack.

  22. val protocolFactory: TProtocolFactory

    Attributes
    protected
    Definition Classes
    ThriftMuxServerLike → ThriftRichServer
  23. def serve(addr: SocketAddress, factory: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    ThriftMuxServerLike → Server
  24. def serve(addr: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  25. def serve(addr: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  26. def serve(addr: SocketAddress, service: Service[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  27. def serveAndAnnounce(name: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  28. def serveAndAnnounce(name: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  29. def serveAndAnnounce(name: String, addr: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  30. def serveAndAnnounce(name: String, addr: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  31. def serveIface(addr: SocketAddress, iface: AnyRef): ListeningServer

    Definition Classes
    ThriftRichServer
  32. def serveIface(addr: String, iface: AnyRef): ListeningServer

    Definition Classes
    ThriftRichServer
  33. val serverLabel: String

    Attributes
    protected
    Definition Classes
    ThriftRichServer
  34. lazy val serverStats: StatsReceiver

    Attributes
    protected
    Definition Classes
    ThriftRichServer
  35. def stack: Stack[ServiceFactory[Request, Response]]

    The com.twitter.finagle.ServiceFactory stack that requests are dispatched through.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def withProtocolFactory(pf: TProtocolFactory): ThriftMuxServerLike

    Produce a com.twitter.finagle.ThriftMuxServerLike using the provided protocolFactory.

Inherited from (Params) ⇒ Server[Array[Byte], Array[Byte]]

Inherited from ThriftRichServer

Inherited from Server[Array[Byte], Array[Byte]]

Inherited from AnyRef

Inherited from Any

Ungrouped