T
- The type of value associated with a AsyncContextMap.Key
.public static final class AsyncContextMap.Key<T>
extends java.lang.Object
AsyncContextMap
.Modifier and Type | Method and Description |
---|---|
static <T> AsyncContextMap.Key<T> |
newKey()
Create a new instance.
|
static <T> AsyncContextMap.Key<T> |
newKey(java.lang.String toString)
Create a new
AsyncContextMap.Key which has a String used only in the toString() method for debugging
visibility. |
java.lang.String |
toString() |
public static <T> AsyncContextMap.Key<T> newKey(java.lang.String toString)
AsyncContextMap.Key
which has a String
used only in the toString()
method for debugging
visibility.
Comparison between AsyncContextMap.Key
objects should be assumed to be on an instance basis.
In general newKey(str) != newKey(str)
.
T
- The value type associated with the AsyncContextMap.Key
.toString
- The value to use in toString()
. This WILL NOT be used in
comparisons between AsyncContextMap.Key
objects.AsyncContextMap.Key
which has a String
used only in the toString()
method for
debugging visibility.public static <T> AsyncContextMap.Key<T> newKey()
Comparison between AsyncContextMap.Key
objects should be assumed to be on an instance basis.
In general newKey() != newKey()
.
T
- The value type associated with the AsyncContextMap.Key
.public java.lang.String toString()
toString
in class java.lang.Object