Packages

c

com.twitter.inject.requestscope

FinagleRequestScope

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

Guice Scopes

Guice Custom Scopes

HttpServer Request Scoping

ThriftServer Request Scoping

Linear Supertypes
Scope, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FinagleRequestScope
  2. Scope
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FinagleRequestScope()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. 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]
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def scope[T](key: Key[T], unscopedProvider: Provider[T]): Provider[T]
    Definition Classes
    FinagleRequestScope → Scope
  17. 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)

  18. 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)

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    FinagleRequestScope → Scope → AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Scope

Inherited from AnyRef

Inherited from Any

Ungrouped