Interface Counter
@Internal
public interface Counter
Represents an atomic counter that can be increased in value.
-
Method Summary
-
Method Details
-
increase
Counter increase()Increase the counter by one.- Returns:
- the counter.
-
increase
Increase the counter by the specified amount.- Parameters:
amount
- the amount to increase the counter by- Returns:
- the counter.
-