mirror of https://github.com/grpc/grpc-java.git
Mark Thrift experimental
New APIs need a stablization period.
This commit is contained in:
parent
6907d81109
commit
a702102e41
|
|
@ -31,11 +31,14 @@
|
||||||
|
|
||||||
package io.grpc.thrift;
|
package io.grpc.thrift;
|
||||||
|
|
||||||
|
import io.grpc.ExperimentalApi;
|
||||||
|
|
||||||
import org.apache.thrift.TBase;
|
import org.apache.thrift.TBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Produce new Message Instances. Used by Marshaller to deserialize incoming messages.
|
* 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,?>> {
|
public interface MessageFactory<T extends TBase<T,?>> {
|
||||||
T newInstance();
|
T newInstance();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
package io.grpc.thrift;
|
package io.grpc.thrift;
|
||||||
|
|
||||||
|
import io.grpc.ExperimentalApi;
|
||||||
import io.grpc.Metadata;
|
import io.grpc.Metadata;
|
||||||
import io.grpc.MethodDescriptor.Marshaller;
|
import io.grpc.MethodDescriptor.Marshaller;
|
||||||
import io.grpc.Status;
|
import io.grpc.Status;
|
||||||
|
|
@ -43,6 +44,7 @@ import org.apache.thrift.TSerializer;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
|
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2170")
|
||||||
public final class ThriftUtils {
|
public final class ThriftUtils {
|
||||||
|
|
||||||
/** Create a {@code Marshaller} for thrift messages. */
|
/** Create a {@code Marshaller} for thrift messages. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue