Mark Thrift experimental

New APIs need a stablization period.
This commit is contained in:
Eric Anderson 2016-08-17 09:20:18 -07:00
parent 6907d81109
commit a702102e41
2 changed files with 5 additions and 0 deletions

View File

@ -31,11 +31,14 @@
package io.grpc.thrift;
import io.grpc.ExperimentalApi;
import org.apache.thrift.TBase;
/**
* Produce new Message Instances. Used by Marshaller to deserialize incoming messages.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2170")
public interface MessageFactory<T extends TBase<T,?>> {
T newInstance();
}

View File

@ -31,6 +31,7 @@
package io.grpc.thrift;
import io.grpc.ExperimentalApi;
import io.grpc.Metadata;
import io.grpc.MethodDescriptor.Marshaller;
import io.grpc.Status;
@ -43,6 +44,7 @@ import org.apache.thrift.TSerializer;
import java.io.IOException;
import java.io.InputStream;
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2170")
public final class ThriftUtils {
/** Create a {@code Marshaller} for thrift messages. */