T - The type of value associated with a AsyncContextMap.Key.public static final class AsyncContextMap.Key<T>
extends Object
AsyncContextMap.| Modifier and Type | Method and Description |
|---|---|
static <T> AsyncContextMap.Key<T> |
newKey()
Create a new instance.
|
static <T> AsyncContextMap.Key<T> |
newKey(String toString)
Create a new
AsyncContextMap.Key which has a String used only in the toString() method for debugging
visibility. |
String |
toString() |
public static <T> AsyncContextMap.Key<T> newKey(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 String toString()
toString in class Object