[infinispan-issues] [JBoss JIRA] (ISPN-1474) Refine fluent API for boolean configuration properties
Paul Ferraro (Updated) (JIRA)
jira-events at lists.jboss.org
Thu Oct 20 10:35:47 EDT 2011
[ https://issues.jboss.org/browse/ISPN-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Ferraro updated ISPN-1474:
-------------------------------
Description:
The following configuration properties lack an API mechanism for disabling their functionality once enabled:
invocationBatching
jmxStatistics
Some configuration properties cannot be re-enabled once disabled.
e.g. for indexing, calling config.fluent().indexing().disable().indexing() will disable then re-enable indexing. However, this does not work for the following properties:
l1Caching
While I'm at it, there seem to be 2 mechanisms for dealing with boolean properties.
Either the property is auto-enabled with an option to disable:
e.g.
config.fluent().indexing().disable()
or, the property is enabled/disabled explicitly:
e.g.
config.fluent().hashing().groups().enabled(Boolean)
config.fluent().hashing().rehashEnabled(Boolean)
Is there any reason why one approach is preferred over the other?
was:
The following configuration properties lack an API mechanism for disabling their functionality once enabled:
invocationBatching
jmxStatistics
Some configuration properties cannot be re-enabled once disabled.
e.g. for indexing, calling config.fluent().indexing().disable().indexing() will disable then re-enable indexing. However, this does not work for the following properties:
l1Caching
> Refine fluent API for boolean configuration properties
> ------------------------------------------------------
>
> Key: ISPN-1474
> URL: https://issues.jboss.org/browse/ISPN-1474
> Project: Infinispan
> Issue Type: Feature Request
> Components: Configuration
> Affects Versions: 5.1.0.BETA2
> Reporter: Paul Ferraro
> Assignee: Manik Surtani
>
> The following configuration properties lack an API mechanism for disabling their functionality once enabled:
> invocationBatching
> jmxStatistics
> Some configuration properties cannot be re-enabled once disabled.
> e.g. for indexing, calling config.fluent().indexing().disable().indexing() will disable then re-enable indexing. However, this does not work for the following properties:
> l1Caching
> While I'm at it, there seem to be 2 mechanisms for dealing with boolean properties.
> Either the property is auto-enabled with an option to disable:
> e.g.
> config.fluent().indexing().disable()
> or, the property is enabled/disabled explicitly:
> e.g.
> config.fluent().hashing().groups().enabled(Boolean)
> config.fluent().hashing().rehashEnabled(Boolean)
> Is there any reason why one approach is preferred over the other?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list