com.twitter.inject.requestscope
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
.
the function to execute with the given LocalContext.
the result of executing the function fn
.
Seed/Add an object into the 'request scope'.
Seed/Add an object into the 'request scope'.
Key of value to be added
Value to seed/add into the request scope
Whether to overwrite an existing value already in the request scope (defaults to false)
Seed/Add an object into the 'request scope'.
Seed/Add an object into the 'request scope'.
Value to seed/add into the request scope
Whether to overwrite an existing value already in the request scope (defaults to false)
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.
It is expected that users use this in combination with the typed FinagleRequestScopeFilter or the type agnostic FinagleRequestScopeFilter.TypeAgnostic.
ThriftServer Request Scoping
HttpServer Request Scoping
Guice Custom Scopes
Guice Scopes