Twitter Util v20.4.0 Release Notes
Release Date: 2020-04-02 // about 4 years ago-
๐ New Features
* util-core: When looking to add idempotent close behavior, users should mix in `CloseOnce` to classes which already extend (or implement) `Closable`, as mixing in `ClosableOnce` leads to compiler errors. `ClosableOnce.of` can still be used to create a `ClosableOnce` proxy of an already instantiated `Closable`. Classes which do not extend `Closable` can still mix in `ClosableOnce`. ``PHAB_ID=D455819`` ๐ฅ Breaking API Changes
- util-hashing: Rename
c.t.hashing.KetamaNode
=>HashNode
,c.t.hashing.KetamaDistributor
=>ConsistentHashingDistributor
.PHAB_ID=D449929
โ Runtime Behavior Changes
* util-stats: Provide CachedRegex, a function that filters a Map[String, Number] => Map[String, Number] and caches which keys to filter on based on a regex. Useful for filtering down metrics in the style that Finagle typically recommends ``PHAB_ID=D459391``.
- util-hashing: Rename