public final class MetadataKey<Metadata> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
The name of the metadata key.
|
int |
hashCode() |
static <Key> MetadataKey<Key> |
messageKey()
The message key metadata key.
|
static <Metadata> MetadataKey<Metadata> |
named(String name)
Create a metadata key with the given name.
|
String |
toString() |
public String getName()
public static <Metadata> MetadataKey<Metadata> named(String name)
public static <Key> MetadataKey<Key> messageKey()