Package io.servicetalk.http.api
Class HttpEventKey<T>
java.lang.Object
io.servicetalk.http.api.HttpEventKey<T>
- Type Parameters:
T
- Type of the value of this setting.
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 Summary
Modifier and TypeFieldDescriptionstatic final HttpEventKey<ConsumableEvent<Integer>>
Option to define max concurrent requests allowed on a connection. -
Method Summary
-
Field Details
-
MAX_CONCURRENCY
Option to define max concurrent requests allowed on a connection.
-
-
Method Details
-
name
Returns the name of the key.- Returns:
- the name of the key.
-
type
Returns the type of the key.- Returns:
- the type of the key.
-
newKey
Creates a newHttpEventKey
with the specified name and type.- Type Parameters:
T
- The value type associated with theHttpEventKey
.- Parameters:
name
- The name of the key. This WILL NOT be used in comparisons betweenHttpEventKey
objects.type
- The type of the key. This WILL NOT be used in comparisons betweenHttpEventKey
objects.- Returns:
- A new
HttpEventKey
which uses a passed name only in thetoString()
method for debugging visibility.
-
toString
-