Package io.grpc.xds

Class XdsNameResolver.ResolveState

    • Field Detail

      • emptyServiceConfig

        private final io.grpc.NameResolver.ConfigOrError emptyServiceConfig
      • ldsResourceName

        private final java.lang.String ldsResourceName
      • stopped

        private boolean stopped
      • existingClusters

        @Nullable
        private java.util.Set<java.lang.String> existingClusters
    • Constructor Detail

      • ResolveState

        ResolveState​(java.lang.String ldsResourceName)
    • Method Detail

      • onError

        public void onError​(io.grpc.Status error)
        Description copied from interface: XdsClient.ResourceWatcher
        Called when the resource discovery RPC encounters some transient error.

        Note that we expect that the implementer to: - Comply with the guarantee to not generate certain statuses by the library: https://grpc.github.io/grpc/core/md_doc_statuscodes.html. If the code needs to be propagated to the channel, override it with Status.Code.UNAVAILABLE. - Keep Status description in one form or another, as it contains valuable debugging information.

        Specified by:
        onError in interface XdsClient.ResourceWatcher<XdsListenerResource.LdsUpdate>
      • start

        private void start()
      • stop

        private void stop()
      • updateRoutes

        private void updateRoutes​(java.util.List<VirtualHost> virtualHosts,
                                  long httpMaxStreamDurationNano,
                                  @Nullable
                                  java.util.List<Filter.NamedFilterConfig> filterConfigs)
      • cleanUpRoutes

        private void cleanUpRoutes​(java.lang.String error)
      • cleanUpRouteDiscoveryState

        private void cleanUpRouteDiscoveryState()