mirror of https://github.com/grpc/grpc-java.git
api: stabilize safe and idempotent methods in MethodDescriptor
This commit is contained in:
parent
ed845991db
commit
4503a233f4
|
|
@ -350,7 +350,6 @@ public final class MethodDescriptor<ReqT, RespT> {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1775")
|
|
||||||
public boolean isIdempotent() {
|
public boolean isIdempotent() {
|
||||||
return idempotent;
|
return idempotent;
|
||||||
}
|
}
|
||||||
|
|
@ -362,7 +361,6 @@ public final class MethodDescriptor<ReqT, RespT> {
|
||||||
*
|
*
|
||||||
* @since 1.1.0
|
* @since 1.1.0
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1775")
|
|
||||||
public boolean isSafe() {
|
public boolean isSafe() {
|
||||||
return safe;
|
return safe;
|
||||||
}
|
}
|
||||||
|
|
@ -539,7 +537,6 @@ public final class MethodDescriptor<ReqT, RespT> {
|
||||||
*
|
*
|
||||||
* @since 1.1.0
|
* @since 1.1.0
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1775")
|
|
||||||
public Builder<ReqT, RespT> setIdempotent(boolean idempotent) {
|
public Builder<ReqT, RespT> setIdempotent(boolean idempotent) {
|
||||||
this.idempotent = idempotent;
|
this.idempotent = idempotent;
|
||||||
if (!idempotent) {
|
if (!idempotent) {
|
||||||
|
|
@ -555,7 +552,6 @@ public final class MethodDescriptor<ReqT, RespT> {
|
||||||
*
|
*
|
||||||
* @since 1.1.0
|
* @since 1.1.0
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1775")
|
|
||||||
public Builder<ReqT, RespT> setSafe(boolean safe) {
|
public Builder<ReqT, RespT> setSafe(boolean safe) {
|
||||||
this.safe = safe;
|
this.safe = safe;
|
||||||
if (safe) {
|
if (safe) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue