/** * Get the configuration for the specified resources with the default options. * * This is a convenience method for #{@link AdminClient#describeConfigs(Collection, DescribeConfigsOptions)} with default options. * See the overload for more details. * * This operation is supported by brokers with version 0.11.0.0 or higher. * * @param resources The resources (topic and broker resource types are currently supported) * @return The DescribeConfigsResult */ public DescribeConfigsResult describeConfigs(Collection<ConfigResource> resources) { return describeConfigs(resources, new DescribeConfigsOptions()); }
@Override AbstractRequest.Builder createRequest(int timeoutMs) { return new DescribeConfigsRequest.Builder(Collections.singleton(resource)) .includeSynonyms(options.includeSynonyms()); }
runnable.call(new Call("describeConfigs", calcDeadlineMs(now, options.timeoutMs()), new LeastLoadedNodeProvider()) { final ConfigResource resource = entry.getKey(); final int nodeId = Integer.parseInt(resource.name()); runnable.call(new Call("describeBrokerConfigs", calcDeadlineMs(now, options.timeoutMs()), new ConstantNodeIdProvider(nodeId)) {
@Override AbstractRequest.Builder createRequest(int timeoutMs) { return new DescribeConfigsRequest.Builder(unifiedRequestResources) .includeSynonyms(options.includeSynonyms()); }