Keys are allowed to be associated with more than one value.
This class is not thread safe, implementations should ensure that header reads and writes do not occur in multiple threads concurrently.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static interface | |
| private static class | |
| public static interface | |
| public static interface | Metadata.BinaryStreamMarshaller<T>
Marshaller for metadata values that are serialized to an InputStream. |
| private class | |
| public abstract static class | |
| private static class | Metadata.LazyStreamBinaryKey<T>
A binary key for values which should be serialized lazily to |
| pack-priv static class | |
| private static class | |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final Metadata. | ASCII_STRING_MARSHALLER
Simple metadata marshaller that encodes strings as is. |
| pack-priv static final BaseEncoding | |
| public static final Metadata. | BINARY_BYTE_MARSHALLER
Simple metadata marshaller that encodes bytes as is. |
| public static final String | BINARY_HEADER_SUFFIX
All binary headers should have this suffix in their names. |
| private static final Logger | |
| private Object[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | Metadata(byte[]... binaryValues)
Constructor called by the transport layer when it receives binary metadata. |
| pack-priv | Metadata(int
the number of names usedNames, byte[]... binaryValues)Constructor called by the transport layer when it receives binary metadata. |
| pack-priv | Metadata(int
the number of names usedNames, Object[] an array of interleaved names and values, with each name
(at even indices) represented by a byte array, and values (at odd indices) as
described by namesAndValues)InternalMetadata#newMetadataWithParsedValues.Constructor called by the transport layer when it receives partially-parsed metadata. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private int | |
| public boolean | |
| public <T> void | |
| private void | |
| public <T> T | |
| public <T> Iterable | |
| pack-priv int | |
| private boolean | |
| public Set | |
| private int | |
| private void | |
| public void | |
| public void | |
| private byte[] | |
| private void | |
| public <T> void | |
| public <T> boolean | |
| public <T> Iterable | |
| pack-priv byte[][] | |
| pack-priv Object[] | |
| private static byte[] | |
| public String | |
| private Object | |
| private void | |
| private void | |
| private byte[] | |
| private Object | |
| private <T> T |