Package io.grpc
Class Context.Key<T>
- java.lang.Object
-
- io.grpc.Context.Key<T>
-
- Enclosing class:
- Context
public static final class Context.Key<T> extends java.lang.ObjectKey for indexing values stored in a context.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()Get the value from theContext.current()context for this key.Tget(Context context)Get the value from the specified context for this key.java.lang.StringtoString()
-
-
-
Method Detail
-
get
public T get()
Get the value from theContext.current()context for this key.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-