final case class Server(muxer: StackServer[Request, Response] = Server.defaultMuxer) extends StackBasedServer[Array[Byte], Array[Byte]] with ThriftRichServer with Parameterized[Server] with CommonParams[Server] with WithServerTransport[Server] with WithServerSession[Server] with WithServerAdmissionControl[Server] with OpportunisticTlsParams[Server] with WithCompressionPreferences[Server] with Product with Serializable
A ThriftMux com.twitter.finagle.Server.
- See also
Configuration documentation
Thrift documentation
Mux documentation
- Alphabetic
- By Inheritance
- Server
- Serializable
- Product
- Equals
- WithCompressionPreferences
- OpportunisticTlsParams
- WithServerAdmissionControl
- WithServerSession
- WithServerTransport
- CommonParams
- ThriftRichServer
- StackBasedServer
- Transformable
- Parameterized
- Server
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Server(muxer: StackServer[Request, Response] = Server.defaultMuxer)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def configured[P](psp: (P, Param[P])): Server
- Definition Classes
- Server → Parameterized
- def configured[P](p: P)(implicit sp: Param[P]): Server
- Definition Classes
- Parameterized
- def configuredParams(newParams: Params): Server
- Definition Classes
- Parameterized
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def filtered(filter: Filter[Request, Response, Request, Response]): Server
Prepends
filterto the top of the server.Prepends
filterto the top of the server. That is, after materializing the server (newService)filterwill be the first element which requests flow through. This is a familiar chaining combinator for filters. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def maxThriftBufferSize: Int
- Attributes
- protected
- Definition Classes
- ThriftRichServer
- val muxer: StackServer[Request, Response]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def params: Params
- Definition Classes
- Server → ThriftRichServer → Parameterized
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serve(addr: SocketAddress, factory: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server → Server
- final def serve(addr: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- final def serve(addr: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- final def serve(addr: SocketAddress, service: Service[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveAndAnnounce(name: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveAndAnnounce(name: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveAndAnnounce(name: String, addr: String, service: Service[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveAndAnnounce(name: String, addr: String, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveAndAnnounce(name: String, addr: SocketAddress, service: Service[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveAndAnnounce(name: String, addr: SocketAddress, service: ServiceFactory[Array[Byte], Array[Byte]]): ListeningServer
- Definition Classes
- Server
- def serveIface(addr: SocketAddress, iface: AnyRef): ListeningServer
- Definition Classes
- ThriftRichServer
- def serveIface(addr: String, iface: AnyRef): ListeningServer
- Definition Classes
- ThriftRichServer
- def serveIfaces(addr: SocketAddress, ifaces: Map[String, AnyRef], defaultService: Option[String]): ListeningServer
- Definition Classes
- ThriftRichServer
- def serveIfaces(addr: SocketAddress, ifaces: Map[String, AnyRef]): ListeningServer
- Definition Classes
- ThriftRichServer
- def serveIfaces(addr: String, ifaces: Map[String, AnyRef], defaultService: Option[String]): ListeningServer
- Definition Classes
- ThriftRichServer
- def serverLabel: String
- Attributes
- protected
- Definition Classes
- ThriftRichServer
- val serverParam: RichServerParam
- def serverStats: StatsReceiver
- Attributes
- protected
- Definition Classes
- ThriftRichServer
- def stack: Stack[ServiceFactory[Request, Response]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def transformed(t: Transformer): Server
- Definition Classes
- Server → Transformable
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val withAdmissionControl: ServerAdmissionControlParams[Server]
- Definition Classes
- Server → WithServerAdmissionControl
- val withCompressionPreferences: CompressionParams[Server]
- Definition Classes
- WithCompressionPreferences
- def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Server
- Definition Classes
- Server → CommonParams
- def withExecutionOffloaded(pool: FuturePool): Server
- Definition Classes
- Server → CommonParams
- def withExecutionOffloaded(executor: ExecutorService): Server
- Definition Classes
- Server → CommonParams
- def withLabel(label: String): Server
- Definition Classes
- Server → CommonParams
- def withLabels(keywords: String*): Server
- Definition Classes
- CommonParams
- def withMaxReusableBufferSize(size: Int): Server
Produce a com.twitter.finagle.ThriftMux.Server with the specified max size of the reusable buffer for thrift responses.
Produce a com.twitter.finagle.ThriftMux.Server with the specified max size of the reusable buffer for thrift responses. If this size is exceeded, the buffer is not reused and a new buffer is allocated for the next thrift response. The default max size is 16Kb.
- size
Max size of the reusable buffer for thrift responses in bytes.
- def withMonitor(monitor: Monitor): Server
- Definition Classes
- Server → CommonParams
- def withNoOpportunisticTls: Server
- Definition Classes
- Server → OpportunisticTlsParams
- def withOpportunisticTls(level: Level): Server
- Definition Classes
- Server → OpportunisticTlsParams
- def withParams(ps: Params): Server
- Definition Classes
- Server → Parameterized
- def withPerEndpointStats: Server
Produce a com.twitter.finagle.ThriftMux.Server with per-endpoint stats filters
- def withProtocolFactory(pf: TProtocolFactory): Server
Produce a com.twitter.finagle.ThriftMux.Server using the provided
TProtocolFactory. - def withRequestTimeout(timeout: Duration): Server
- Definition Classes
- Server → CommonParams
- def withRequestTimeout(timeout: Tunable[Duration]): Server
- Definition Classes
- CommonParams
- def withResponseClassifier(responseClassifier: ResponseClassifier): Server
- Definition Classes
- CommonParams
- def withServiceClass(clazz: Class[_]): Server
Configure the service class that may be used with this server to collect instrumentation metadata.
Configure the service class that may be used with this server to collect instrumentation metadata. This is not necessary to run a service.
- Note
that when using the
.serveIfacemethods this is unnecessary.
- val withSession: ServerSessionParams[Server]
- Definition Classes
- Server → WithServerSession
- def withStack(fn: (Stack[ServiceFactory[Request, Response]]) => Stack[ServiceFactory[Request, Response]]): Server
- def withStack(stack: Stack[ServiceFactory[Request, Response]]): Server
Produce a com.twitter.finagle.ThriftMux.Server using the provided stack.
- def withStatsReceiver(statsReceiver: StatsReceiver): Server
- Definition Classes
- Server → CommonParams
- def withTracer(tracer: Tracer): Server
- Definition Classes
- Server → CommonParams
- val withTransport: ServerTransportParams[Server]
- Definition Classes
- Server → WithServerTransport