Uses of Class
io.grpc.Context.Key
Packages that use Context.Key
Package
Description
The gRPC core public API.
Service definitions and utilities for the pre-defined gRPC services.
-
Uses of Context.Key in io.grpc
Fields in io.grpc declared as Context.KeyModifier and TypeFieldDescriptionstatic final Context.Key
<Server> InternalServer.SERVER_CONTEXT_KEY
(package private) static final Context.Key
<Server> Server.SERVER_CONTEXT_KEY
Fields in io.grpc with type parameters of type Context.KeyModifier and TypeFieldDescription(package private) final PersistentHashArrayMappedTrie.Node
<Context.Key<?>, Object> Context.keyValueEntries
Methods in io.grpc that return Context.KeyModifier and TypeMethodDescriptionstatic <T> Context.Key
<T> Create aContext.Key
with the given debug name.static <T> Context.Key
<T> Context.keyWithDefault
(String debugString, T defaultValue) Create aContext.Key
with the given debug name and default value.Methods in io.grpc with parameters of type Context.KeyModifier and TypeMethodDescription<V> Context
Context.withValue
(Context.Key<V> k1, V v1) Create a new context with the given key value set.<V1,
V2> Context Context.withValues
(Context.Key<V1> k1, V1 v1, Context.Key<V2> k2, V2 v2) Create a new context with the given key value set.<V1,
V2, V3>
ContextContext.withValues
(Context.Key<V1> k1, V1 v1, Context.Key<V2> k2, V2 v2, Context.Key<V3> k3, V3 v3) Create a new context with the given key value set.<V1,
V2, V3, V4>
ContextContext.withValues
(Context.Key<V1> k1, V1 v1, Context.Key<V2> k2, V2 v2, Context.Key<V3> k3, V3 v3, Context.Key<V4> k4, V4 v4) Create a new context with the given key value set.Constructor parameters in io.grpc with type arguments of type Context.KeyModifierConstructorDescriptionprivate
Context
(Context parent, PersistentHashArrayMappedTrie.Node<Context.Key<?>, Object> keyValueEntries) Construct a context that cannot be cancelled but will cascade cancellation from its parent if it is cancellable.private
Context
(PersistentHashArrayMappedTrie.Node<Context.Key<?>, Object> keyValueEntries, int generation) Construct a context that cannot be cancelled and will not cascade cancellation from its parent. -
Uses of Context.Key in io.grpc.services
Fields in io.grpc.services declared as Context.KeyModifier and TypeFieldDescription(package private) static final Context.Key
<CallMetricRecorder> CallMetricRecorder.CONTEXT_KEY
static final Context.Key
<CallMetricRecorder> InternalCallMetricRecorder.CONTEXT_KEY