Uses of Class
io.grpc.Status.Code
-
Packages that use Status.Code Package Description io.grpc The gRPC core public API.io.grpc.internal Interfaces and implementations that are internal to gRPC.io.grpc.netty The main transport implementation based on Netty, for both the client and the server.io.grpc.protobuf.services Service definitions and utilities with protobuf dependency for the pre-defined gRPC services. -
-
Uses of Status.Code in io.grpc
Fields in io.grpc declared as Status.Code Modifier and Type Field Description private Status.CodeStatus. codeMethods in io.grpc that return Status.Code Modifier and Type Method Description Status.CodeStatus. getCode()The canonical status code.static Status.CodeStatus.Code. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Status.Code[]Status.Code. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in io.grpc with parameters of type Status.Code Modifier and Type Method Description static StatusStatus. fromCode(Status.Code code)Return aStatusgiven a canonical errorStatus.Codeobject.Constructors in io.grpc with parameters of type Status.Code Constructor Description Status(Status.Code code)Status(Status.Code code, java.lang.String description, java.lang.Throwable cause) -
Uses of Status.Code in io.grpc.internal
Fields in io.grpc.internal with type parameters of type Status.Code Modifier and Type Field Description private static java.util.Set<Status.Code>GrpcUtil. INAPPROPRIATE_CONTROL_PLANE_STATUS(package private) java.util.Set<Status.Code>HedgingPolicy. nonFatalStatusCodes(package private) java.util.Set<Status.Code>RetryPolicy. retryableStatusCodesMethods in io.grpc.internal that return Status.Code Modifier and Type Method Description private static Status.CodeGrpcUtil. httpStatusToGrpcCode(int httpStatusCode)Methods in io.grpc.internal that return types with arguments of type Status.Code Modifier and Type Method Description private static java.util.Set<Status.Code>ServiceConfigUtil. getListOfStatusCodesAsSet(java.util.Map<java.lang.String,?> obj, java.lang.String key)(package private) static java.util.Set<Status.Code>ServiceConfigUtil. getNonFatalStatusCodesFromHedgingPolicy(java.util.Map<java.lang.String,?> hedgingPolicy)(package private) static java.util.Set<Status.Code>ServiceConfigUtil. getRetryableStatusCodesFromRetryPolicy(java.util.Map<java.lang.String,?> retryPolicy)private static java.util.Set<Status.Code>ServiceConfigUtil. getStatusCodesFromList(java.util.List<?> statuses)Constructor parameters in io.grpc.internal with type arguments of type Status.Code Constructor Description HedgingPolicy(int maxAttempts, long hedgingDelayNanos, java.util.Set<Status.Code> nonFatalStatusCodes)The caller is supposed to have validated the arguments and handled throwing exception or logging warnings already, so we avoid repeating args check here.RetryPolicy(int maxAttempts, long initialBackoffNanos, long maxBackoffNanos, double backoffMultiplier, java.lang.Long perAttemptRecvTimeoutNanos, java.util.Set<Status.Code> retryableStatusCodes)The caller is supposed to have validated the arguments and handled throwing exception or logging warnings already, so we avoid repeating args check here. -
Uses of Status.Code in io.grpc.netty
Methods in io.grpc.netty with parameters of type Status.Code Modifier and Type Method Description private voidNettyServerHandler. respondWithHttpError(io.netty.channel.ChannelHandlerContext ctx, int streamId, int code, Status.Code statusCode, java.lang.String msg)private StatusNettyClientHandler. statusFromH2Error(Status.Code statusCode, java.lang.String context, long errorCode, byte[] debugData)IfstatusCodeis non-null, it will be used instead of the http2 error code mapping. -
Uses of Status.Code in io.grpc.protobuf.services
Methods in io.grpc.protobuf.services with parameters of type Status.Code Modifier and Type Method Description private voidProtoReflectionServiceV1.ProtoReflectionStreamObserver. sendErrorResponse(ServerReflectionRequest request, Status.Code code, java.lang.String message)
-