@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()
Counter
getCounter
in interface Counter
public void updateCounter()
Counter
updateCounter
in interface Counter
Copyright © 2003–2019 Atlassian. All rights reserved.