@NotThreadSafe public class DefaultCounter extends Object implements Counter
This implementation is not thread safe as the impact of using an outdated counter value, or over-updating the counter is non-terminal.
| Constructor and Description |
|---|
DefaultCounter(String key,
com.atlassian.bandana.BandanaManager bandanaManager,
TenantRegistry tenantRegistry) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCounter()
Get the resource counter
|
void |
updateCounter()
Update the resource counter
|
public DefaultCounter(String key, com.atlassian.bandana.BandanaManager bandanaManager, TenantRegistry tenantRegistry)
public int getCounter()
CountergetCounter in interface Counterpublic void updateCounter()
CounterupdateCounter in interface CounterCopyright © 2003–2023 Atlassian. All rights reserved.