com.twitter.finagle.thrift
Used by Thrift and ThriftMux Client 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 ClientDeserializeCtx will be available to code via Contexts.local(ClientDeserializeCtx.Key).
ClientDeserializeCtx
Contexts.local(ClientDeserializeCtx.Key)
Deserialize the given bytes.
Ensures that deserialization will only happen once regardless of future inputs. If different bytes are seen on future calls, this will still return the first deserialized result.
Used by Thrift and ThriftMux Client 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
ClientDeserializeCtx
will be available to code viaContexts.local(ClientDeserializeCtx.Key)
.