Github user mosermw commented on the issue:
https://github.com/apache/nifi/pull/2284
Thank you Joe and Koji for taking a look at this. I struggled with
deciding whether to provide a default UnsupportedOperationException or to
provide the new methods in the various DistributedMapCacheClient
implementations. I will happily change this PR to go with the
UnsupportedOperationException route. Give me a little time to make the changes
and force push, but it should be a much smaller PR and easier to review.
I agree that a keySet method could become problematic in a distributed Map
environment. However I believe it's important to provide as much of the Java
Map interface in the distributed Map as we can, and let the implementer beware
of the potential problems. I do know some folks who have extended
DistributedMapCacheClient with their own implementations, and I would like the
keySet method to exist to support them.
---