Versions Compared

Key

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

...

  • Add the new method updateClusterMetadata(ClusterMetadata) to the old interface ClientQuotaCallback, while doing this have a downside is that once we remove that deprecated function, it will break compilation for anyone who already implementing it.

    Code Block
    languagejava
    public interface ClientQuotaCallback extends Configurable {
    
        // ...skip ...//
     
        @Deprecated(since = "4.1", forRemoval = true)
        boolean updateClusterMetadata(Cluster cluster);
    
        default boolean updateClusterMetadata(ClusterMetadata clusterMetadata) {
            return updateClusterMetadata(toCluster(clusterMetadata));
        }
    }


...