Packages

package netty4

Package netty4 implements the bottom finagle primitives: com.twitter.finagle.Server and a client transport in terms of the netty4 event loop.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. netty4
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Netty4Listener[In, Out, Ctx <: TransportContext](pipelineInit: (ChannelPipeline) ⇒ Unit, params: Params, setupMarshalling: (ChannelInitializer[Channel]) ⇒ ChannelHandler, transportFactory: (Channel) ⇒ Transport[Any, Any] { type Context <: Ctx })(implicit mIn: Manifest[In], mOut: Manifest[Out]) extends Listener[In, Out, Ctx] with Product with Serializable

    Constructs a Listener[In, Out] given a pipelineInit function responsible for framing a Transport stream.

    Constructs a Listener[In, Out] given a pipelineInit function responsible for framing a Transport stream. The Listener is configured via the passed in Params.

    See also

    com.twitter.finagle.server.Listener

    com.twitter.finagle.transport.Transport

    com.twitter.finagle.param

Value Members

  1. object HashedWheelTimer
  2. object Netty4Listener extends Serializable
  3. object Netty4Transporter
  4. object numWorkers extends GlobalFlag[Int]

    Flag for defining the number of worker threads used by the Finagle Netty 4 backend.

    Flag for defining the number of worker threads used by the Finagle Netty 4 backend. This defaults to 2 x available CPUs but this behavior can be overridden via the auto offloading flag.

    {{ -com.twitter.finagle.offload.auto=true }}

    When auto offloading is enabled and no explicit c.t.f.netty.numWorkers is provided, the number of Netty workers defaults to 1/3 of available CPUs with a floor of 4 (on a host with less than 12 CPUs, 4 Netty workers would be allocated).

    Note

    For the default value, we set a floor of 8 workers so in the case of constrained environments we don't end up with detrimentally small worker pool sizes.

  5. object referenceLeakLintRule

Inherited from AnyRef

Inherited from Any

Ungrouped