|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.plugin.webresource.DefaultCounter
@NotThreadSafe public class DefaultCounter
Default implementation of a counter stores its data in bandana by a supplied key.
This implementation is not thread safe as the impact of using an outdated counter value, or over-updating the counter is non-terminal.
| Constructor Summary | |
|---|---|
DefaultCounter(java.lang.String key,
com.atlassian.bandana.BandanaManager bandanaManager,
TenantRegistry tenantRegistry)
|
|
| Method Summary | |
|---|---|
int |
getCounter()
Get the resource counter |
void |
updateCounter()
Update the resource counter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCounter(java.lang.String key,
com.atlassian.bandana.BandanaManager bandanaManager,
TenantRegistry tenantRegistry)
| Method Detail |
|---|
public int getCounter()
Counter
getCounter in interface Counterpublic void updateCounter()
Counter
updateCounter in interface Counter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||