mirror of https://github.com/grpc/grpc-java.git
all: make some api non-experimental for 1.1
This commit is contained in:
parent
8a4c7bdf7f
commit
018e2d5307
|
|
@ -167,7 +167,6 @@ public final class CallOptions {
|
||||||
* <a href="https://github.com/grpc/grpc/blob/master/doc/fail_fast.md">'Fail fast'</a>
|
* <a href="https://github.com/grpc/grpc/blob/master/doc/fail_fast.md">'Fail fast'</a>
|
||||||
* is the default option for gRPC calls and 'wait for ready' is the opposite to it.
|
* is the default option for gRPC calls and 'wait for ready' is the opposite to it.
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1915")
|
|
||||||
public CallOptions withWaitForReady() {
|
public CallOptions withWaitForReady() {
|
||||||
CallOptions newOptions = new CallOptions(this);
|
CallOptions newOptions = new CallOptions(this);
|
||||||
newOptions.waitForReady = true;
|
newOptions.waitForReady = true;
|
||||||
|
|
@ -178,7 +177,6 @@ public final class CallOptions {
|
||||||
* Disables 'wait for ready' feature for the call.
|
* Disables 'wait for ready' feature for the call.
|
||||||
* This method should be rarely used because the default is without 'wait for ready'.
|
* This method should be rarely used because the default is without 'wait for ready'.
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1915")
|
|
||||||
public CallOptions withoutWaitForReady() {
|
public CallOptions withoutWaitForReady() {
|
||||||
CallOptions newOptions = new CallOptions(this);
|
CallOptions newOptions = new CallOptions(this);
|
||||||
newOptions.waitForReady = false;
|
newOptions.waitForReady = false;
|
||||||
|
|
@ -332,7 +330,6 @@ public final class CallOptions {
|
||||||
* <a href="https://github.com/grpc/grpc/blob/master/doc/fail_fast.md">'Fail fast'</a>
|
* <a href="https://github.com/grpc/grpc/blob/master/doc/fail_fast.md">'Fail fast'</a>
|
||||||
* is the default option for gRPC calls and 'wait for ready' is the opposite to it.
|
* is the default option for gRPC calls and 'wait for ready' is the opposite to it.
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1915")
|
|
||||||
public boolean isWaitForReady() {
|
public boolean isWaitForReady() {
|
||||||
return waitForReady;
|
return waitForReady;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ public abstract class Server {
|
||||||
*
|
*
|
||||||
* @throws IllegalStateException if the server has not yet been started.
|
* @throws IllegalStateException if the server has not yet been started.
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1780")
|
|
||||||
public int getPort() {
|
public int getPort() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,6 @@ public abstract class AbstractStub<S extends AbstractStub<S>> {
|
||||||
/**
|
/**
|
||||||
* Returns a new stub that uses the 'wait for ready' call option.
|
* Returns a new stub that uses the 'wait for ready' call option.
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1915")
|
|
||||||
public final S withWaitForReady() {
|
public final S withWaitForReady() {
|
||||||
return build(channel, callOptions.withWaitForReady());
|
return build(channel, callOptions.withWaitForReady());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ package io.grpc.stub;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
|
|
||||||
import io.grpc.ExperimentalApi;
|
|
||||||
import io.grpc.Metadata;
|
import io.grpc.Metadata;
|
||||||
import io.grpc.MethodDescriptor;
|
import io.grpc.MethodDescriptor;
|
||||||
import io.grpc.ServerCall;
|
import io.grpc.ServerCall;
|
||||||
|
|
@ -44,7 +43,6 @@ import io.grpc.Status;
|
||||||
* Utility functions for adapting {@link ServerCallHandler}s to application service implementation,
|
* Utility functions for adapting {@link ServerCallHandler}s to application service implementation,
|
||||||
* meant to be used by the generated code.
|
* meant to be used by the generated code.
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1790")
|
|
||||||
public final class ServerCalls {
|
public final class ServerCalls {
|
||||||
|
|
||||||
private ServerCalls() {
|
private ServerCalls() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue