GP-2595: Make TraceTimeViewport receives updates directly rather than via change listener.

This commit is contained in:
Dan
2022-09-23 15:38:12 -04:00
parent f31e6bd52e
commit c9c749b39c
21 changed files with 389 additions and 186 deletions
@@ -219,6 +219,10 @@ public class ListenerMap<K, P, V extends P> {
}
protected Map<K, V> createMap() {
/**
* TODO: This is potentially flawed: The removal modifies the map in place. It does not
* adhere to "copy on write." It does have its own concurrency considerations, though.
*/
CacheBuilder<K, V> builder = CacheBuilder.newBuilder()
.removalListener(this::notifyRemoved)
.weakValues()