com.twitter.finagle

ThriftMuxServer

object ThriftMuxServer extends ThriftMuxServerImpl

A server for thrift served over com.twitter.finagle.mux. It's also backward compatible with thrift clients that use framed transport and binary protocol with strict write. 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 server. Since a thrift message that is encoded by binary protocol with strict write starts with a header 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 backward-compatible mode afterwards. Note the server is also compatible with 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.

$serverExample

Linear Supertypes
ThriftMuxServerImpl, Serializable, Serializable, Product, Equals, ThriftRichServer, Server[Array[Byte], Array[Byte]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ThriftMuxServer
  2. ThriftMuxServerImpl
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. ThriftRichServer
  8. Server
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def getClass(): Class[_]

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

    Definition Classes
    Any
  12. val muxer: Server[ChannelBuffer, ChannelBuffer]

    Definition Classes
    ThriftMuxServerImpl
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  16. val protocolFactory: TProtocolFactory

    Definition Classes
    ThriftMuxServerImpl → ThriftRichServer
  17. def serve(addr: SocketAddress, newService: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    ThriftMuxServerImpl → Server
  18. def serve(target: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer

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

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

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

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

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

    Definition Classes
    Server
  24. def serveAndAnnounce(forum: String, target: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer

    Definition Classes
    Server
  25. def serveIface(target: SocketAddress, iface: AnyRef): ListeningServer

    Definition Classes
    ThriftRichServer
  26. def serveIface(target: String, iface: AnyRef): ListeningServer

    Definition Classes
    ThriftRichServer
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ThriftMuxServerImpl

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ThriftRichServer

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

Inherited from AnyRef

Inherited from Any

Ungrouped