[infinispan-issues] [JBoss JIRA] (ISPN-8093) Remove operation for counters
Tristan Tarrant (JIRA)
issues at jboss.org
Tue Oct 24 15:49:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-8093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant updated ISPN-8093:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.2.0.Alpha2
Resolution: Done
> Remove operation for counters
> -----------------------------
>
> Key: ISPN-8093
> URL: https://issues.jboss.org/browse/ISPN-8093
> Project: Infinispan
> Issue Type: Feature Request
> Components: Clustered Counter
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Fix For: 9.2.0.Alpha2
>
>
> Allow counters to be removed. If an operation finds out that the counter doesn't exists, it is recreated with its initial value and the operation is replied.
> If a getValue is invoked and the counter doesn't exist, it returns its initial value without recreating the counter.
> New methods to the API:
> {code:java}
> CounterManager.removeCounter(String counterName) //remove the counter with this name
> StrongCounter.remove() //removes the counter represent by this instance
> WeakCounter.remove() //same as above
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list