T - Type of the value of this setting.public final class HttpEventKey<T>
extends Object
Comparison between HttpEventKey objects should be assumed to be on an instance basis.
In general, newKey(strA) != newKey(strA).
| Modifier and Type | Field and Description |
|---|---|
static HttpEventKey<ConsumableEvent<Integer>> |
MAX_CONCURRENCY
Option to define max concurrent requests allowed on a connection.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name()
Returns the name of the key.
|
static <T> HttpEventKey<T> |
newKey(String name,
Class<T> type)
Creates a new
HttpEventKey with the specified name and type. |
String |
toString() |
Class<T> |
type()
Returns the type of the key.
|
public static final HttpEventKey<ConsumableEvent<Integer>> MAX_CONCURRENCY
public String name()
public Class<T> type()
public static <T> HttpEventKey<T> newKey(String name, Class<T> type)
HttpEventKey with the specified name and type.T - The value type associated with the HttpEventKey.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.HttpEventKey which uses a passed name only in the toString() method for
debugging visibility.public String toString()
toString in class Object