class FinagleRequestScope extends Scope
A Guice Custom Scope implemented with com.twitter.util.Local to mimic the behavior of the '@RequestScoped' scope using com.twitter.util.Local to work within the context of com.twitter.util.Futures.
- Note
It is expected that users use this in combination with the typed FinagleRequestScopeFilter or the type agnostic FinagleRequestScopeFilter.TypeAgnostic.
- See also
- Alphabetic
- By Inheritance
- FinagleRequestScope
- Scope
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FinagleRequestScope()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def let[R](fn: => R): R
Initializes the value of the RequestScope to a new empty java.util.HashMap only for the scope of the current com.twitter.finagle.context.LocalContext for the given function
fn
.Initializes the value of the RequestScope to a new empty java.util.HashMap only for the scope of the current com.twitter.finagle.context.LocalContext for the given function
fn
.- fn
the function to execute with the given LocalContext.
- returns
the result of executing the function
fn
.
- Attributes
- protected[requestscope]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def scope[T](key: Key[T], unscopedProvider: Provider[T]): Provider[T]
- Definition Classes
- FinagleRequestScope → Scope
- def seed[T <: AnyRef](key: Key[T], value: T, overwrite: Boolean): Unit
Seed/Add an object into the 'request scope'.
Seed/Add an object into the 'request scope'.
- key
Key of value to be added
- value
Value to seed/add into the request scope
- overwrite
Whether to overwrite an existing value already in the request scope (defaults to false)
- def seed[T <: AnyRef](value: T, overwrite: Boolean = false)(implicit arg0: Manifest[T]): Unit
Seed/Add an object into the 'request scope'.
Seed/Add an object into the 'request scope'.
- value
Value to seed/add into the request scope
- overwrite
Whether to overwrite an existing value already in the request scope (defaults to false)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- FinagleRequestScope → Scope → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()