Package io.grpc

Class Attributes.Key<T>

java.lang.Object
io.grpc.Attributes.Key<T>
Type Parameters:
T - type of the value in the key-value pair
Enclosing class:
Attributes

@Immutable public static final class Attributes.Key<T> extends Object
Key for an key-value pair. Uses reference equality.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      @Deprecated public static <T> Attributes.Key<T> of(String debugString)
      Deprecated.
      use create(java.lang.String) instead. This method will be removed in the future.
      Factory method for creating instances of Attributes.Key.
      Type Parameters:
      T - Key type
      Parameters:
      debugString - a string used to describe the key, used for debugging.
      Returns:
      Key object
    • create

      public static <T> Attributes.Key<T> create(String debugString)
      Factory method for creating instances of Attributes.Key.
      Type Parameters:
      T - Key type
      Parameters:
      debugString - a string used to describe the key, used for debugging.
      Returns:
      Key object