Returns the ReqRep set before, null
if setReqRep hasn't been called.
Returns the ReqRep set before, null
if setReqRep hasn't been called.
Set the ReqRep in deserialized form, _reqRep can only be set once (only the first time is valid for a thread).
Used by Thrift and ThriftMux Server to facilitate giving the Finagle stack access to the deserialized forms of Thrift requests and responses.
While this is thread-safe, it should only be used for the life of a single request/response pair.
When using Scrooge for code generation, a proper
ServerToReqRep
will be available to code viaContexts.local(ServerToReqRep.Key)
.