com.atlassian.confluence.util.profiling
Interface Counter


@Internal
public interface Counter

Represents an atomic counter that can be increased in value.


Method Summary
 Counter increase()
          Increase the counter by one.
 Counter increase(long amount)
          Increase the counter by the specified amount.
 

Method Detail

increase

Counter increase()
Increase the counter by one.

Returns:
the counter.

increase

Counter increase(long amount)
Increase the counter by the specified amount.

Parameters:
amount - the amount to increase the counter by
Returns:
the counter.


Copyright © 2003–2015 Atlassian. All rights reserved.