Class

com.twitter.finagle

ThriftMuxServerLike

Related Doc: package finagle

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

    Permalink

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

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

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

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

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

    Permalink

    Used for Java access.

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

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

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

    Permalink
    Definition Classes
    Any
  17. val maxThriftBufferSize: Int

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def params: Params

    Permalink

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

  22. val protocolFactory: TProtocolFactory

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    ThriftRichServer
  35. val serverLabel: String

    Permalink
    Attributes
    protected
    Definition Classes
    ThriftRichServer
  36. lazy val serverStats: StatsReceiver

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

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

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

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

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

    Permalink

    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