Class HttpEventKey<T>

java.lang.Object
io.servicetalk.http.api.HttpEventKey<T>
Type Parameters:
T - Type of the value of this setting.

public final class HttpEventKey<T> extends Object
A key which identifies a configuration setting for a connection. Setting values may change over time.

Comparison between HttpEventKey objects should be assumed to be on an instance basis. In general, newKey(strA) != newKey(strA).

  • Field Details

  • Method Details

    • name

      public String name()
      Returns the name of the key.
      Returns:
      the name of the key.
    • type

      public Class<T> type()
      Returns the type of the key.
      Returns:
      the type of the key.
    • newKey

      public static <T> HttpEventKey<T> newKey(String name, Class<T> type)
      Creates a new HttpEventKey with the specified name and type.
      Type Parameters:
      T - The value type associated with the HttpEventKey.
      Parameters:
      name - The name of the key. This WILL NOT be used in comparisons between HttpEventKey objects.
      type - The type of the key. This WILL NOT be used in comparisons between HttpEventKey objects.
      Returns:
      A new HttpEventKey which uses a passed name only in the toString() method for debugging visibility.
    • toString

      public String toString()
      Overrides:
      toString in class Object