Package

com.twitter.finagle

context

Permalink

package context

Visibility
  1. Public
  2. All

Type Members

  1. trait Context extends AnyRef

    Permalink

    A context contains a number of let-delimited bindings.

    A context contains a number of let-delimited bindings. Bindings are indexed by type Key[A] in a typesafe manner. Later bindings shadow earlier ones.

    Note that the implementation of context maintains all bindings in a linked list; context lookup requires a linear search.

  2. case class Deadline(timestamp: Time, deadline: Time) extends Ordered[Deadline] with Product with Serializable

    Permalink

    A deadline is the time by which some action (e.g., a request) must complete.

    A deadline is the time by which some action (e.g., a request) must complete. A deadline has a timestamp in addition to the deadline. This timestamp denotes the time at which the deadline was enacted.

    This is done so that they may be reconciled over process boundaries; e.g., to account for variable latencies in message deliveries.

    timestamp

    the time at which the deadline was enacted.

    deadline

    the time by which the action must complete.

  3. final class LocalContext extends Context

    Permalink

    A type of context that is local to the process.

    A type of context that is local to the process. The type of Key is also unique (generative) to each instance of this context, so that keys cannot be used across different instances of this context type.

  4. final class MarshalledContext extends Context

    Permalink

    A marshalled context contains bindings that may be marshalled and sent across process boundaries.

    A marshalled context contains bindings that may be marshalled and sent across process boundaries. A set of marshalled bindings may be restored in the local environment. Thus we can use marshalled contexts to propagate a set of bindings across a whole request tree.

  5. sealed trait RemoteInfo extends AnyRef

    Permalink

    Contains the remote information for a request, if available.

  6. case class Retries(attempt: Int) extends Product with Serializable

    Permalink

    Retries contains the number of times a request has been retried.

    Retries contains the number of times a request has been retried.

    attempt

    which retry attempt this is. Will be 0 if the request is not a retry.

Value Members

  1. object BackupRequest

    Permalink

    Used to signal that a request was initiated as a "backup request".

    Used to signal that a request was initiated as a "backup request".

    Note that these are broadcast across the rest of the request's call graph.

    See also

    MethodBuilder's idempotent for configuring a client to use backups.

    com.twitter.finagle.client.BackupRequestFilter for details on what a backup request is.

  2. object Contexts

    Permalink

    com.twitter.finagle.context.Contexts that are managed by Finagle.

  3. object Deadline extends Key[Deadline] with Serializable

    Permalink

    A broadcast context for deadlines.

  4. object RemoteInfo

    Permalink
  5. object Retries extends Key[Retries] with Serializable

    Permalink

Ungrouped