Package io.grpc.xds.client
Interface XdsClient.ResourceStore
- All Known Implementing Classes:
XdsClientImpl
- Enclosing class:
XdsClient
public static interface XdsClient.ResourceStore
-
Method Summary
Modifier and TypeMethodDescriptiongetSubscribedResources
(Bootstrapper.ServerInfo serverInfo, XdsResourceType<? extends XdsClient.ResourceUpdate> type) Returns the collection of resources currently subscribing to ornull
if not subscribing to any resources for the given type.Map
<String, XdsResourceType<?>>
-
Method Details
-
getSubscribedResources
@Nullable Collection<String> getSubscribedResources(Bootstrapper.ServerInfo serverInfo, XdsResourceType<? extends XdsClient.ResourceUpdate> type) Returns the collection of resources currently subscribing to ornull
if not subscribing to any resources for the given type.Note an empty collection indicates subscribing to resources of the given type with wildcard mode.
-
getSubscribedResourceTypesWithTypeUrl
Map<String,XdsResourceType<?>> getSubscribedResourceTypesWithTypeUrl()
-