@Immutable public final class ContextUtils extends Object
Context.| Modifier and Type | Method and Description |
|---|---|
static Scope |
withScopedContext(io.grpc.Context context)
Sets the specified
Context as Context.current(), returning a Scope to
end its active state and restore the previous active Context. |
public static Scope withScopedContext(io.grpc.Context context)
Context as Context.current(), returning a Scope to
end its active state and restore the previous active Context.context - the Context to be set as Context.current().Scope for the updated Context.