Tabnine Logo
AdminClientConfig.configNames
Code IndexAdd Tabnine to your IDE (free)

How to use
configNames
method
in
org.apache.kafka.clients.admin.AdminClientConfig

Best Java code snippets using org.apache.kafka.clients.admin.AdminClientConfig.configNames (Showing top 6 results out of 315)

origin: confluentinc/ksql

public Map<String, Object> getKsqlAdminClientConfigProps() {
 final Map<String, Object> props = new HashMap<>();
 ksqlStreamConfigProps.values().stream()
   .filter(configValue -> AdminClientConfig.configNames().contains(configValue.key))
   .forEach(
     configValue -> props.put(configValue.key, configValue.value));
 return Collections.unmodifiableMap(props);
}
origin: org.apache.kafka/kafka-streams

/**
 * Get the configs for the {@link org.apache.kafka.clients.admin.AdminClient admin client}.
 * @param clientId clientId
 * @return Map of the admin client configuration.
 */
@SuppressWarnings("WeakerAccess")
public Map<String, Object> getAdminConfigs(final String clientId) {
  final Map<String, Object> clientProvidedProps = getClientPropsWithPrefix(ADMIN_CLIENT_PREFIX, AdminClientConfig.configNames());
  final Map<String, Object> props = new HashMap<>();
  props.putAll(getClientCustomProps());
  props.putAll(clientProvidedProps);
  // add client id with stream client id prefix
  props.put(CommonClientConfigs.CLIENT_ID_CONFIG, clientId + "-admin");
  return props;
}
origin: org.apache.kafka/kafka-streams

/**
 * Get a map of custom configs by removing from the originals all the Streams, Consumer, Producer, and AdminClient configs.
 * Prefixed properties are also removed because they are already added by {@link #getClientPropsWithPrefix(String, Set)}.
 * This allows to set a custom property for a specific client alone if specified using a prefix, or for all
 * when no prefix is used.
 *
 * @return a map with the custom properties
 */
private Map<String, Object> getClientCustomProps() {
  final Map<String, Object> props = originals();
  props.keySet().removeAll(CONFIG.names());
  props.keySet().removeAll(ConsumerConfig.configNames());
  props.keySet().removeAll(ProducerConfig.configNames());
  props.keySet().removeAll(AdminClientConfig.configNames());
  props.keySet().removeAll(originalsWithPrefix(CONSUMER_PREFIX, false).keySet());
  props.keySet().removeAll(originalsWithPrefix(PRODUCER_PREFIX, false).keySet());
  props.keySet().removeAll(originalsWithPrefix(ADMIN_CLIENT_PREFIX, false).keySet());
  return props;
}
origin: spring-cloud/spring-cloud-stream-binder-kafka

Set<String> adminConfigNames = AdminClientConfig.configNames();
binderProperties.forEach((key, value) -> {
  if (key.equals(CommonClientConfigs.BOOTSTRAP_SERVERS_CONFIG)) {
origin: org.springframework.cloud/spring-cloud-stream-binder-kafka-core

Set<String> adminConfigNames = AdminClientConfig.configNames();
binderProperties.forEach((key, value) -> {
  if (key.equals(CommonClientConfigs.BOOTSTRAP_SERVERS_CONFIG)) {
origin: org.apache.kafka/kafka-streams

final AdminClientConfig adminClientDefaultConfig = new AdminClientConfig(getClientPropsWithPrefix(ADMIN_CLIENT_PREFIX, AdminClientConfig.configNames()));
consumerProps.put(adminClientPrefix(AdminClientConfig.RETRIES_CONFIG), adminClientDefaultConfig.getInt(AdminClientConfig.RETRIES_CONFIG));
org.apache.kafka.clients.adminAdminClientConfigconfigNames

Popular methods of AdminClientConfig

  • <init>
  • getInt
  • getLong
  • getConfiguredInstances
  • getList
  • getString
  • logUnused

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now