Package io.grpc

Class InternalConfigSelector.Result

java.lang.Object
io.grpc.InternalConfigSelector.Result
Enclosing class:
InternalConfigSelector

public static final class InternalConfigSelector.Result extends Object
  • Field Details

  • Method Details

    • forError

      public static InternalConfigSelector.Result forError(Status status)
      Creates a Result with the given error status.
    • getStatus

      public Status getStatus()
      Returns the status of the config selection operation. If status is not Status.OK, this result should not be used.
    • getConfig

      public 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()