mirror of https://github.com/grpc/grpc-java.git
Currently Context propagate in-thread by its own ThreadLocal, and cross-thread propagation must be done with the mechanisms provied by gRPC Context. However, there are frameworks (e.g. what we are using inside Google) which have already established context-propagation mechanisms. If gRPC Context may ride on top of them, it would be propagated automatically without additional effort from the application. The Storage API allows gRPC Context to be attached to anything. The default implementation still uses its own ThreadLocal. If an override implementation is present, gRPC Context will use it. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle | ||