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

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

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

origin: apache/kafka

private KafkaAdminClient(AdminClientConfig config,
             String clientId,
             Time time,
             AdminMetadataManager metadataManager,
             Metrics metrics,
             KafkaClient client,
             TimeoutProcessorFactory timeoutProcessorFactory,
             LogContext logContext) {
  this.defaultTimeoutMs = config.getInt(AdminClientConfig.REQUEST_TIMEOUT_MS_CONFIG);
  this.clientId = clientId;
  this.log = logContext.logger(KafkaAdminClient.class);
  this.time = time;
  this.metadataManager = metadataManager;
  this.metrics = metrics;
  this.client = client;
  this.runnable = new AdminClientRunnable();
  String threadName = NETWORK_THREAD_PREFIX + " | " + clientId;
  this.thread = new KafkaThread(threadName, runnable, true);
  this.timeoutProcessorFactory = (timeoutProcessorFactory == null) ?
    new TimeoutProcessorFactory() : timeoutProcessorFactory;
  this.maxRetries = config.getInt(AdminClientConfig.RETRIES_CONFIG);
  this.retryBackoffMs = config.getLong(AdminClientConfig.RETRY_BACKOFF_MS_CONFIG);
  config.logUnused();
  AppInfoParser.registerAppInfo(JMX_PREFIX, clientId, metrics);
  log.debug("Kafka admin client initialized");
  thread.start();
}
origin: apache/kafka

  Collections.singletonMap(AdminClientConfig.CLIENT_ID_CONFIG, clientId));
Map<String, String> metricTags = Collections.singletonMap("client-id", clientId);
MetricConfig metricConfig = new MetricConfig().samples(config.getInt(AdminClientConfig.METRICS_NUM_SAMPLES_CONFIG))
  .timeWindow(config.getLong(AdminClientConfig.METRICS_SAMPLE_WINDOW_MS_CONFIG), TimeUnit.MILLISECONDS)
  .recordLevel(Sensor.RecordingLevel.forName(config.getString(AdminClientConfig.METRICS_RECORDING_LEVEL_CONFIG)))
  config.getLong(AdminClientConfig.RECONNECT_BACKOFF_MS_CONFIG),
  config.getLong(AdminClientConfig.RECONNECT_BACKOFF_MAX_MS_CONFIG),
  config.getInt(AdminClientConfig.SEND_BUFFER_CONFIG),
  config.getInt(AdminClientConfig.RECEIVE_BUFFER_CONFIG),
  (int) TimeUnit.HOURS.toMillis(1),
  ClientDnsLookup.forConfig(config.getString(AdminClientConfig.CLIENT_DNS_LOOKUP_CONFIG)),
origin: org.apache.kafka/kafka-streams

consumerProps.put(adminClientPrefix(AdminClientConfig.RETRIES_CONFIG), adminClientDefaultConfig.getInt(AdminClientConfig.RETRIES_CONFIG));
org.apache.kafka.clients.adminAdminClientConfiggetInt

Popular methods of AdminClientConfig

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

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best IntelliJ plugins
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