Class AsyncContextMap.Key<T>

  • Type Parameters:
    T - The type of value associated with a AsyncContextMap.Key.
    Enclosing interface:

    public static final class AsyncContextMap.Key<T>
    extends java.lang.Object
    A key identifies a specific object in a AsyncContextMap.
    • Method Detail

      • newKey

        public static <T> AsyncContextMap.Key<T> newKey()
        Create a new instance.

        Comparison between AsyncContextMap.Key objects should be assumed to be on an instance basis. In general newKey() != newKey().

        Type Parameters:
        T - The value type associated with the AsyncContextMap.Key.
        a new instance.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object