accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <>
Subject [jira] [Created] (ACCUMULO-4822) Remove observers from configuration
Date Wed, 21 Feb 2018 15:09:00 GMT
Keith Turner created ACCUMULO-4822:

             Summary: Remove observers from configuration
                 Key: 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

View raw message