com.atlassian.confluence.util.profiling
Interface Counter


public interface Counter

Represents an atomic counter that can be increased and decreased in value.


Method Summary
 Counter decrease()
          Decrease the counter by one.
 Counter decrease(long amount)
          Decrease the counter by the specified amount.
 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.

decrease

Counter decrease()
Decrease the counter by one.

Returns:
the counter.

decrease

Counter decrease(long amount)
Decrease the counter by the specified amount.

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.