Class DefaultCounter
java.lang.Object
com.atlassian.confluence.plugin.webresource.DefaultCounter
- All Implemented Interfaces:
Counter
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
ConstructorDescriptionDefaultCounter
(String key, com.atlassian.bandana.BandanaManager bandanaManager) DefaultCounter
(String key, com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry ignored) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6 -
Method Summary
Modifier and TypeMethodDescriptionint
Get the resource countervoid
Update the resource counter
-
Constructor Details
-
DefaultCounter
- Since:
- 8.6
-
DefaultCounter
@Deprecated(forRemoval=true) public DefaultCounter(String key, com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry ignored) Deprecated, for removal: This API element is subject to removal in a future version.since 8.6
-
-
Method Details
-
getCounter
public int getCounter()Description copied from interface:Counter
Get the resource counter- Specified by:
getCounter
in interfaceCounter
-
updateCounter
public void updateCounter()Description copied from interface:Counter
Update the resource counter- Specified by:
updateCounter
in interfaceCounter
-