You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2018/02/21 15:09:00 UTC
[jira] [Created] (ACCUMULO-4822) Remove observers from
configuration
Keith Turner created ACCUMULO-4822:
--------------------------------------
Summary: Remove observers from configuration
Key: ACCUMULO-4822
URL: https://issues.apache.org/jira/browse/ACCUMULO-4822
Project: Accumulo
Issue Type: Improvement
Reporter: Keith Turner
As part of the work done for ACCUMULO-4779 the method getUpdateCount was added to AccumuloConfiguration. Subclasses of AccumuloConfiguration increase a counter each time it changes and this counter is available via getUpdateCount. Anything that is derived from configuration can be cached and this counter can be used to know when it needs to be derived again.
Some AccumuloConfigurations are also observable. I think this observer pattern could be dropped in favor of using this counter. I think this change would simplify the code.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)