Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
firstline1
titleAdmin interface change
linenumberstrue
package org.apache.kafka.clients.admin;

public interface Admin extends AutoCloseable {  

/**
 *
 * Register additional application metrics  Application metrics provided for subscription.
 *  These metrics will be added to this client's metrics
 *  that are available for subscription
 *
  and sent as telemetry data to the broker.
 *
 * @param metrics the application metrics to register
 *
 */
void
 * @return true if metrics accepted for subscription.
 *         A return value of false indicates that the ENABLE_METRICS_PUSH_CONFIG is set to false.
 */ 
boolean registerMetricsForSubscription(Collection<? extends Metric> metrics)

...

Code Block
languagejava
titleConsumer interface change
linenumberstrue
package org.apache.kafka.clients.consumer;

public interface Consumer<K, V> extends Closeable {
   
/**
 *  Application metrics provided for subscription.
 * Register additional application metrics  These metrics will be added to this client's metrics
 *  that are available for subscription and sent as telemetry data to the broker.
 *
 * @param metrics the application metrics to register
 * @return true if metrics accepted for subscription.
 *         A return value of false indicates that the ENABLE_METRICS_PUSH_CONFIG is set to false.
 */   
voidboolean registerMetricsForSubscription(Collection<? extends Metric> metrics)

...

Code Block
languagejava
titleProducer interface changes
linenumberstrue
package org.apache.kafka.clients.producer;

public interface Producer<K, V> extends Closeable {   

/**
 *  Application metrics provided for subscription.
 * Register additional application metrics  These metrics will be added to this client's metrics
 *  that are available for subscription and sent as telemetry data to the broker.
 *
 * @param metrics the application metrics to register
 * @return true if metrics accepted for subscription.
 *         A return value of false indicates that the ENABLE_METRICS_PUSH_CONFIG is set to false.
 */  
voidboolean registerMetricsForSubscription(Collection<? extends Metric> metrics)

...