mirror of https://github.com/grpc/grpc-java.git
Expose the getOrCreate method via the InternalSharedXdsClientPoolProvider. This is needed for internal users to both set the bootstrap and interact with the XdsClient via the shared object pool (#10872)
This commit is contained in:
parent
d568a8dc19
commit
52b11c1d08
|
|
@ -17,6 +17,7 @@
|
|||
package io.grpc.xds;
|
||||
|
||||
import io.grpc.Internal;
|
||||
import io.grpc.internal.ObjectPool;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -30,4 +31,8 @@ public final class InternalSharedXdsClientPoolProvider {
|
|||
public static void setDefaultProviderBootstrapOverride(Map<String, ?> bootstrap) {
|
||||
SharedXdsClientPoolProvider.getDefaultProvider().setBootstrapOverride(bootstrap);
|
||||
}
|
||||
|
||||
public static ObjectPool<XdsClient> getOrCreate() throws XdsInitializationException {
|
||||
return SharedXdsClientPoolProvider.getDefaultProvider().getOrCreate();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue