package context
- Alphabetic
- Public
- All
Type Members
-
trait
Context
extends AnyRef
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.
-
case class
Deadline
(timestamp: Time, deadline: Time) extends Ordered[Deadline] with Product with Serializable
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.
-
class
LocalContext
extends Context
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.
-
final
class
MarshalledContext
extends Context
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.
-
sealed
trait
RemoteInfo
extends AnyRef
Contains the remote information for a request, if available
Value Members
-
object
Contexts
com.twitter.finagle.context.Contexts that are managed by Finagle.
-
object
Deadline
extends Key[Deadline] with Serializable
A broadcast context for deadlines.
- object RemoteInfo