Package

com.twitter.finagle

dispatch

Permalink

package dispatch

Visibility
  1. Public
  2. All

Type Members

  1. abstract class GenPipeliningDispatcher[Req, Rep, In, Out, T] extends GenSerialClientDispatcher[Req, Rep, In, Out]

    Permalink

    A generic pipelining dispatcher, which assumes that servers will respect normal pipelining semantics, and that replies will be sent in the same order as requests were sent.

    A generic pipelining dispatcher, which assumes that servers will respect normal pipelining semantics, and that replies will be sent in the same order as requests were sent. Exploits GenSerialClientDispatcher to serialize requests.

    Because many requests might be sharing the same transport, Futures returned by GenPipeliningDispatcher#apply are masked, and will only propagate the interrupt if the future doesn't return after a configurable amount of time after the interruption. This ensures that interrupting a Future in one request won't change the result of another request unless the connection is stuck, and does not look like it will make progress. Use StalledPipelineTimeout to configure this timeout.

  2. abstract class GenSerialClientDispatcher[Req, Rep, In, Out] extends Service[Req, Rep]

    Permalink

    Dispatches requests one at a time; concurrent requests are queued.

  3. abstract class GenSerialServerDispatcher[Req, Rep, In, Out] extends Closable

    Permalink

    A generic version of SerialServerDispatcher, allowing the implementor to furnish custom dispatchers & handlers.

  4. class PipeliningDispatcher[Req, Rep] extends GenPipeliningDispatcher[Req, Rep, Req, Rep, Unit]

    Permalink
  5. class SerialClientDispatcher[Req, Rep] extends GenSerialClientDispatcher[Req, Rep, Req, Rep]

    Permalink

  6. class SerialServerDispatcher[Req, Rep] extends GenSerialServerDispatcher[Req, Rep, Rep, Req]

    Permalink

    Dispatch requests from transport one at a time, queueing concurrent requests.

    Dispatch requests from transport one at a time, queueing concurrent requests.

    Transport errors are considered fatal; the service will be released after any error.

  7. case class StalledPipelineTimeout(timeout: Duration) extends Product with Serializable

    Permalink

    A class eligible for configuring a timeout com.twitter.util.Duration to consider a pipeline to have stalled (stopped making progress after an initial interruption).

Ungrouped