api: Add ExperimentalApi to Metadata.BinaryStreamMarshaller

This was missed in d1078591 and the API has not yet been released.
This commit is contained in:
Eric Anderson 2019-12-27 12:58:49 -08:00
parent d82140cdbc
commit dd8165b2a7
1 changed files with 2 additions and 0 deletions

View File

@ -614,6 +614,7 @@ public final class Metadata {
} }
/** Marshaller for metadata values that are serialized to an InputStream. */ /** Marshaller for metadata values that are serialized to an InputStream. */
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/6575")
public interface BinaryStreamMarshaller<T> { public interface BinaryStreamMarshaller<T> {
/** /**
* Serializes a metadata value to an {@link InputStream}. * Serializes a metadata value to an {@link InputStream}.
@ -685,6 +686,7 @@ public final class Metadata {
* @param name Must contain only the valid key characters as defined in the class comment. Must * @param name Must contain only the valid key characters as defined in the class comment. Must
* end with {@link #BINARY_HEADER_SUFFIX}. * end with {@link #BINARY_HEADER_SUFFIX}.
*/ */
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/6575")
public static <T> Key<T> of(String name, BinaryStreamMarshaller<T> marshaller) { public static <T> Key<T> of(String name, BinaryStreamMarshaller<T> marshaller) {
return new LazyStreamBinaryKey<>(name, marshaller); return new LazyStreamBinaryKey<>(name, marshaller);
} }