com.twitter.finagle

server

package server

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. server
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class DefaultServer[Req, Rep, In, Out](name: String, listener: Listener[In, Out], serviceTransport: (Transport[In, Out], Service[Req, Rep]) ⇒ Closable, requestTimeout: Duration = Duration.Top, maxConcurrentRequests: Int = Int.MaxValue, cancelOnHangup: Boolean = true, prepare: (ServiceFactory[Req, Rep]) ⇒ ServiceFactory[Req, Rep] = ..., timer: Timer = DefaultTimer.twitter, monitor: Monitor = DefaultMonitor, logger: Logger = DefaultLogger, statsReceiver: StatsReceiver = ServerStatsReceiver, tracer: Tracer = DefaultTracer, reporter: ReporterFactory = LoadedReporterFactory, newTraceInitializer: Stackable[ServiceFactory[Req, Rep]] = ...) extends Server[Req, Rep] with Product with Serializable

    The default Server implementation.

    The default Server implementation. It is given a Listener (eg. com.twitter.finagle.netty3.Netty3Listener) and a function, serveTransport, that binds a transport and a service. It will then dispatch requests onto a standard service stack parameterized as described below.

    listener

    The Listener from which to accept new typed Transports.

    requestTimeout

    The maximum amount of time the server is allowed to handle a request. If the timeout expires, the server will cancel the future and terminate the client connection.

    maxConcurrentRequests

    The maximum number of concurrent requests the server is willing to handle.

    cancelOnHangup

    Enabled by default. If disabled, exceptions on the transport do not propagate to the transport.

    prepare

    Prepare the given ServiceFactory before use.

  2. trait Listener[In, Out] extends AnyRef

    Listeners provide a method, listen, to expose a server on the the given SocketAddress.

    Listeners provide a method, listen, to expose a server on the the given SocketAddress. serveTransport is called for each new connection. It is furnished with a typed Transport representing this connection.

    The returned ListeningServer is used to inspect the server, and is also used to shut it down.

  3. trait StackBasedServer[Req, Rep] extends Server[Req, Rep] with Parameterized[StackBasedServer[Req, Rep]]

    A Server that is parameterized.

  4. trait StackServer[Req, Rep] extends StackBasedServer[Req, Rep] with Parameterized[StackServer[Req, Rep]]

    A com.twitter.finagle.Server that composes a com.twitter.finagle.Stack.

  5. trait StdStackServer[Req, Rep, This <: StdStackServer[Req, Rep, This]] extends StackServer[Req, Rep]

    A standard template implementation for com.twitter.finagle.server.StackServer.

  6. type Transformer[Req, Rep] = (ServiceFactory[Req, Rep]) ⇒ ServiceFactory[Req, Rep]

Value Members

  1. object Listener

    A collection of Stack.Params useful for configuring a com.twitter.finagle.server.Listener.

  2. object NullListener extends Listener[Any, Any]

    An empty Listener that can be used as a placeholder.

  3. object StackServer

Inherited from AnyRef

Inherited from Any

Ungrouped