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.Code
Status. code
Methods in io.grpc that return Status.Code Modifier and Type Method Description Status.Code
Status. getCode()
The canonical status code.static Status.Code
Status.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 Status
Status. fromCode(Status.Code code)
Return aStatus
given a canonical errorStatus.Code
object.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. retryableStatusCodes
Methods in io.grpc.internal that return Status.Code Modifier and Type Method Description private static Status.Code
GrpcUtil. 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 void
NettyServerHandler. respondWithHttpError(io.netty.channel.ChannelHandlerContext ctx, int streamId, int code, Status.Code statusCode, java.lang.String msg)
private Status
NettyClientHandler. statusFromH2Error(Status.Code statusCode, java.lang.String context, long errorCode, byte[] debugData)
IfstatusCode
is 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 void
ProtoReflectionServiceV1.ProtoReflectionStreamObserver. sendErrorResponse(ServerReflectionRequest request, Status.Code code, java.lang.String message)
-