mirror of https://github.com/grpc/grpc-java.git
parent
8e0cf27822
commit
c71e2919de
|
|
@ -178,7 +178,7 @@ final class GoogleAuthLibraryCallCredentials implements CallCredentials {
|
||||||
static JwtHelper createJwtHelperOrNull(ClassLoader loader) {
|
static JwtHelper createJwtHelperOrNull(ClassLoader loader) {
|
||||||
Class<?> rawServiceAccountClass;
|
Class<?> rawServiceAccountClass;
|
||||||
try {
|
try {
|
||||||
// Specify loader so it can be overriden in tests
|
// Specify loader so it can be overridden in tests
|
||||||
rawServiceAccountClass
|
rawServiceAccountClass
|
||||||
= Class.forName("com.google.auth.oauth2.ServiceAccountCredentials", false, loader);
|
= Class.forName("com.google.auth.oauth2.ServiceAccountCredentials", false, loader);
|
||||||
} catch (ClassNotFoundException ex) {
|
} catch (ClassNotFoundException ex) {
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ public abstract class AbstractManagedChannelImplBuilder
|
||||||
* larger than this limit is received it will not be processed and the RPC will fail with
|
* larger than this limit is received it will not be processed and the RPC will fail with
|
||||||
* RESOURCE_EXHAUSTED.
|
* RESOURCE_EXHAUSTED.
|
||||||
*/
|
*/
|
||||||
// Can be overriden by subclasses.
|
// Can be overridden by subclasses.
|
||||||
@Override
|
@Override
|
||||||
public T maxInboundMessageSize(int max) {
|
public T maxInboundMessageSize(int max) {
|
||||||
checkArgument(max >= 0, "negative max");
|
checkArgument(max >= 0, "negative max");
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ class NettyClientStream extends AbstractClientStream {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Intended to be overriden by NettyClientTransport, which has more information about failures.
|
* Intended to be overridden by NettyClientTransport, which has more information about failures.
|
||||||
* May only be called from event loop.
|
* May only be called from event loop.
|
||||||
*/
|
*/
|
||||||
protected abstract Status statusFromFailedFuture(ChannelFuture f);
|
protected abstract Status statusFromFailedFuture(ChannelFuture f);
|
||||||
|
|
|
||||||
|
|
@ -554,7 +554,7 @@ class OkHttpClientTransport implements ConnectionClientTransport {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the overriden authority hostname. If the authority is overriden to be an invalid
|
* Gets the overridden authority hostname. If the authority is overridden to be an invalid
|
||||||
* authority, uri.getHost() will (rightly) return null, since the authority is no longer
|
* authority, uri.getHost() will (rightly) return null, since the authority is no longer
|
||||||
* an actual service. This method overrides the behavior for practical reasons. For example,
|
* an actual service. This method overrides the behavior for practical reasons. For example,
|
||||||
* if an authority is in the form "invalid_authority" (note the "_"), rather than return null,
|
* if an authority is in the form "invalid_authority" (note the "_"), rather than return null,
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,14 @@ import io.grpc.Metadata;
|
||||||
/**
|
/**
|
||||||
* {@link NoopClientCall} is a class that is designed for use in tests. It is designed to be used
|
* {@link NoopClientCall} is a class that is designed for use in tests. It is designed to be used
|
||||||
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
||||||
* to be overriden.
|
* to be overridden.
|
||||||
*/
|
*/
|
||||||
public class NoopClientCall<ReqT, RespT> extends ClientCall<ReqT, RespT> {
|
public class NoopClientCall<ReqT, RespT> extends ClientCall<ReqT, RespT> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link NoopClientCall.NoopClientCallListener} is a class that is designed for use in tests.
|
* {@link NoopClientCall.NoopClientCallListener} is a class that is designed for use in tests.
|
||||||
* It is designed to be used in places where a scriptable call listener is necessary. By
|
* It is designed to be used in places where a scriptable call listener is necessary. By
|
||||||
* default, all methods are noops, and designed to be overriden.
|
* default, all methods are noops, and designed to be overridden.
|
||||||
*/
|
*/
|
||||||
public static class NoopClientCallListener<T> extends ClientCall.Listener<T> {
|
public static class NoopClientCallListener<T> extends ClientCall.Listener<T> {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,14 +24,14 @@ import io.grpc.Status;
|
||||||
/**
|
/**
|
||||||
* {@link NoopServerCall} is a class that is designed for use in tests. It is designed to be used
|
* {@link NoopServerCall} is a class that is designed for use in tests. It is designed to be used
|
||||||
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
||||||
* to be overriden.
|
* to be overridden.
|
||||||
*/
|
*/
|
||||||
public class NoopServerCall<ReqT, RespT> extends ServerCall<ReqT, RespT> {
|
public class NoopServerCall<ReqT, RespT> extends ServerCall<ReqT, RespT> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link NoopServerCall.NoopServerCallListener} is a class that is designed for use in tests.
|
* {@link NoopServerCall.NoopServerCallListener} is a class that is designed for use in tests.
|
||||||
* It is designed to be used in places where a scriptable call listener is necessary. By
|
* It is designed to be used in places where a scriptable call listener is necessary. By
|
||||||
* default, all methods are noops, and designed to be overriden.
|
* default, all methods are noops, and designed to be overridden.
|
||||||
*/
|
*/
|
||||||
public static class NoopServerCallListener<T> extends ServerCall.Listener<T> {
|
public static class NoopServerCallListener<T> extends ServerCall.Listener<T> {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import io.grpc.Metadata;
|
||||||
/**
|
/**
|
||||||
* {@link NoopClientCall} is a class that is designed for use in tests. It is designed to be used
|
* {@link NoopClientCall} is a class that is designed for use in tests. It is designed to be used
|
||||||
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
||||||
* to be overriden.
|
* to be overridden.
|
||||||
*
|
*
|
||||||
* @deprecated moved to {@link io.grpc.internal.NoopClientCall} and for internal use only. Please
|
* @deprecated moved to {@link io.grpc.internal.NoopClientCall} and for internal use only. Please
|
||||||
* use {@link GrpcServerRule} to test on InProcess channels instead
|
* use {@link GrpcServerRule} to test on InProcess channels instead
|
||||||
|
|
@ -35,7 +35,7 @@ public class NoopClientCall<ReqT, RespT> extends ClientCall<ReqT, RespT> {
|
||||||
/**
|
/**
|
||||||
* {@link NoopClientCall.NoopClientCallListener} is a class that is designed for use in tests.
|
* {@link NoopClientCall.NoopClientCallListener} is a class that is designed for use in tests.
|
||||||
* It is designed to be used in places where a scriptable call listener is necessary. By
|
* It is designed to be used in places where a scriptable call listener is necessary. By
|
||||||
* default, all methods are noops, and designed to be overriden.
|
* default, all methods are noops, and designed to be overridden.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static class NoopClientCallListener<T> extends ClientCall.Listener<T> {
|
public static class NoopClientCallListener<T> extends ClientCall.Listener<T> {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import io.grpc.Status;
|
||||||
/**
|
/**
|
||||||
* {@link NoopServerCall} is a class that is designed for use in tests. It is designed to be used
|
* {@link NoopServerCall} is a class that is designed for use in tests. It is designed to be used
|
||||||
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
* in places where a scriptable call is necessary. By default, all methods are noops, and designed
|
||||||
* to be overriden.
|
* to be overridden.
|
||||||
*
|
*
|
||||||
* @deprecated moved to {@link io.grpc.internal.NoopServerCall} and for internal use only. Please
|
* @deprecated moved to {@link io.grpc.internal.NoopServerCall} and for internal use only. Please
|
||||||
* use {@link GrpcServerRule} to test on InProcess channels instead
|
* use {@link GrpcServerRule} to test on InProcess channels instead
|
||||||
|
|
@ -37,7 +37,7 @@ public class NoopServerCall<ReqT, RespT> extends ServerCall<ReqT, RespT> {
|
||||||
/**
|
/**
|
||||||
* {@link NoopServerCall.NoopServerCallListener} is a class that is designed for use in tests.
|
* {@link NoopServerCall.NoopServerCallListener} is a class that is designed for use in tests.
|
||||||
* It is designed to be used in places where a scriptable call listener is necessary. By
|
* It is designed to be used in places where a scriptable call listener is necessary. By
|
||||||
* default, all methods are noops, and designed to be overriden.
|
* default, all methods are noops, and designed to be overridden.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static class NoopServerCallListener<T> extends ServerCall.Listener<T> {
|
public static class NoopServerCallListener<T> extends ServerCall.Listener<T> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue