Package io.grpc
Class InternalConfigSelector.Result
- java.lang.Object
-
- io.grpc.InternalConfigSelector.Result
-
- Enclosing class:
- InternalConfigSelector
public static final class InternalConfigSelector.Result extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InternalConfigSelector.Result.Builder
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
config
ClientInterceptor
interceptor
private Status
status
-
Constructor Summary
Constructors Modifier Constructor Description private
Result(Status status, java.lang.Object config, ClientInterceptor interceptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InternalConfigSelector.Result
forError(Status status)
Creates aResult
with the given error status.java.lang.Object
getConfig()
Returns a parsed config.ClientInterceptor
getInterceptor()
Returns an interceptor that will be applies to calls.Status
getStatus()
Returns the status of the config selection operation.static InternalConfigSelector.Result.Builder
newBuilder()
-
-
-
Field Detail
-
status
private final Status status
-
config
private final java.lang.Object config
-
interceptor
@Nullable public ClientInterceptor interceptor
-
-
Constructor Detail
-
Result
private Result(Status status, java.lang.Object config, ClientInterceptor interceptor)
-
-
Method Detail
-
forError
public static InternalConfigSelector.Result forError(Status status)
Creates aResult
with the given error status.
-
getStatus
public Status getStatus()
Returns the status of the config selection operation. If status is notStatus.OK
, this result should not be used.
-
getConfig
public java.lang.Object getConfig()
Returns a parsed config. Must have been returned via ServiceConfigParser.parseServiceConfig().getConfig()
-
getInterceptor
@Nullable public ClientInterceptor getInterceptor()
Returns an interceptor that will be applies to calls.
-
newBuilder
public static InternalConfigSelector.Result.Builder newBuilder()
-
-