Package

com.twitter.finagle

netty3

Permalink

package netty3

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

Note: when {{com.twitter.finagle.builder.ClientBuilder}} and {{com.twitter.finagle.builder.ServerBuilder}} are deprecated, package netty3 can move into its own package, so that only the (new-style) clients and servers that depend on netty3 bring it in.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. netty3
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class ChannelBufferBuf extends Buf

    Permalink

    A com.twitter.io.Buf wrapper for Netty ChannelBuffers.

    A com.twitter.io.Buf wrapper for Netty ChannelBuffers.

    Note

    Since ChannelBuffers are mutable, modifying the wrapped buffer within slices of a ChannelBufferBuf will modify the original wrapped ChannelBuffer. Similarly, modifications to the original buffer will be reflected in slices.

  2. class ChannelBufferSnooper extends ChannelSnooper

    Permalink

    Log message events

  3. trait ChannelSnooper extends ChannelDownstreamHandler with ChannelUpstreamHandler

    Permalink

    Log events on channels

  4. case class Netty3Listener[In, Out](name: String, pipelineFactory: ChannelPipelineFactory, channelSnooper: Option[ChannelSnooper] = None, channelFactory: ServerChannelFactory = Netty3Listener.channelFactory, bootstrapOptions: Map[String, AnyRef] = ..., channelReadTimeout: Duration = Duration.Top, channelWriteCompletionTimeout: Duration = Duration.Top, tlsConfig: Option[Netty3ListenerTLSConfig] = None, timer: Timer = DefaultTimer.twitter, nettyTimer: Timer = DefaultTimer.netty, statsReceiver: StatsReceiver = ServerStatsReceiver, monitor: Monitor = NullMonitor, logger: Logger = DefaultLogger) extends Listener[In, Out] with Product with Serializable

    Permalink

    A listener using Netty3 which is given a ChannelPipelineFactory that yields Out-typed upstream messages and accepts In-typed downstream messages.

    A listener using Netty3 which is given a ChannelPipelineFactory that yields Out-typed upstream messages and accepts In-typed downstream messages.

    In

    the type of input messages

    Out

    the type of output messages

    pipelineFactory

    The pipeline factory for encoding input messages and decoding output messages.

    channelSnooper

    Use the given ChannelSnooper to log low level channel activity.

    channelFactory

    A netty3 ChannelFactory used to bootstrap the server's listening channel.

    bootstrapOptions

    Additional options for Netty's ServerBootstrap

    channelReadTimeout

    Channels are given this much time to read a request.

    channelWriteCompletionTimeout

    Channels are given this much time to complete a write.

    tlsConfig

    When present, SSL is used to provide session security.

    monitor

    Currently unused. Maintained for API compatibility.

  5. case class Netty3ListenerTLSConfig(newEngine: () ⇒ Engine) extends Product with Serializable

    Permalink

    Netty3 TLS configuration.

    Netty3 TLS configuration.

    newEngine

    Creates a new SSL engine

  6. case class Netty3Transporter[In, Out](name: String, pipelineFactory: ChannelPipelineFactory, newChannel: (ChannelPipeline) ⇒ Channel = ..., newTransport: (Channel) ⇒ Transport[In, Out] = ..., tlsConfig: Option[Netty3TransporterTLSConfig] = None, httpProxy: Option[SocketAddress] = None, socksProxy: Option[SocketAddress] = SocksProxyFlags.socksProxy, socksUsernameAndPassword: Option[(String, String)] = ..., channelReaderTimeout: Duration = Duration.Top, channelWriterTimeout: Duration = Duration.Top, channelSnooper: Option[ChannelSnooper] = None, channelOptions: Map[String, AnyRef] = ..., httpProxyCredentials: Option[Credentials] = None) extends (SocketAddress, StatsReceiver) ⇒ Future[Transport[In, Out]] with Product with Serializable

    Permalink

    A transporter for netty3 which, given an endpoint name (socket address), provides a typed transport for communicating with this endpoint.

    A transporter for netty3 which, given an endpoint name (socket address), provides a typed transport for communicating with this endpoint.

    In

    the type of requests. The given pipeline must consume Req-typed objects

    Out

    the type of replies. The given pipeline must produce objects of this type.

    pipelineFactory

    the pipeline factory that implements the the Codec: it must input (downstream) In objects, and output (upstream) Out objects.

    newChannel

    A function used to create a new netty3 channel, given a pipeline.

    newTransport

    Create a new transport, given a channel.

    tlsConfig

    If defined, use SSL with the given configuration

    channelReaderTimeout

    The amount of time for which a channel may be read-idle.

    channelWriterTimeout

    The amount of time for which a channel may be write-idle.

    channelSnooper

    If defined, install the given snooper on each channel. Used for debugging.

    channelOptions

    These netty channel options are applied to the channel prior to establishing a new connection.

  7. case class Netty3TransporterTLSConfig(newEngine: (SocketAddress) ⇒ Engine, verifyHost: Option[String]) extends Product with Serializable

    Permalink

    Netty3 TLS configuration.

    Netty3 TLS configuration.

    newEngine

    Creates a new SSL Engine

    verifyHost

    If specified, checks the session hostname against the given value.

  8. class SimpleChannelSnooper extends ChannelSnooper

    Permalink

    Log raw channel events

Value Members

  1. object BufChannelBuffer

    Permalink
  2. object BufChannelBufferFactory

    Permalink

    Class BufChannelBufferFactory is a Netty ChannelBufferFactory that creates read-only ChannelBuffers based on Bufs.

    Class BufChannelBufferFactory is a Netty ChannelBufferFactory that creates read-only ChannelBuffers based on Bufs. They are a thin API wrapper on top of Buf; no additional allocations are performed.

  3. object ChannelBufferBuf

    Permalink
  4. object ChannelSnooper

    Permalink
  5. val Executor: ExecutorService

    Permalink
  6. object Netty3Listener extends Serializable

    Permalink
  7. object Netty3Transporter extends Serializable

    Permalink
  8. object WorkerPool extends NioWorkerPool

    Permalink
  9. package channel

    Permalink
  10. object numWorkers extends GlobalFlag[Int]

    Permalink
  11. package socks

    Permalink
  12. package ssl

    Permalink
  13. package transport

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped